org.springframework.yarn.am
Class GenericRpcMessage<T>
java.lang.Object
org.springframework.yarn.am.GenericRpcMessage<T>
- Type Parameters:
T - Type of the message body
- All Implemented Interfaces:
- RpcMessage<T>
public class GenericRpcMessage<T>
- extends Object
- implements RpcMessage<T>
Generic RpcMessage implementation.
- Author:
- Janne Valkealahti
|
Method Summary |
T |
getBody()
Gets a body of this message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericRpcMessage
public GenericRpcMessage(T body)
- Constructs a
GenericRpcMessage with a given body.
- Parameters:
body - The body
getBody
public T getBody()
- Description copied from interface:
RpcMessage
- Gets a body of this message.
- Specified by:
getBody in interface RpcMessage<T>
- Returns:
- wrapped body of the message