public abstract class IntegrationAppmasterServiceClient<T> extends IntegrationObjectSupport implements AppmasterScOperations, AppmasterServiceClient
Constructor and Description |
---|
IntegrationAppmasterServiceClient() |
Modifier and Type | Method and Description |
---|---|
RpcMessage<?> |
get(RpcMessage<?> message)
Sends request wrapped in
RpcMessage and
receives response similarly wrapped in RpcMessage . |
protected abstract T |
getPayload(RpcMessage<?> message)
This method is called from
get(RpcMessage) to
resolve the actual payload sent to Sprint Int Tcp channel. |
void |
setRequestChannel(org.springframework.messaging.MessageChannel requestChannel)
Set the request channel for outgoing messages.
|
void |
setResponseChannel(org.springframework.messaging.PollableChannel responseChannel)
Set the response channel for incoming messages.
|
getConversionService, setConversionService
afterPropertiesSet, doStart, doStop, getBeanFactory, getPhase, getTaskExecutor, getTaskScheduler, getYarnEventPublisher, isAutoStartup, isRunning, onInit, setAutoStartup, setBeanFactory, setPhase, setTaskExecutor, setTaskScheduler, setYarnEventPublisher, start, stop, stop
public void setRequestChannel(org.springframework.messaging.MessageChannel requestChannel)
requestChannel
- the request channelpublic void setResponseChannel(org.springframework.messaging.PollableChannel responseChannel)
responseChannel
- the response channelpublic RpcMessage<?> get(RpcMessage<?> message)
AppmasterScOperations
RpcMessage
and
receives response similarly wrapped in RpcMessage
.get
in interface AppmasterScOperations
message
- the RpcMessage
requestRpcMessage
responseprotected abstract T getPayload(RpcMessage<?> message)
get(RpcMessage)
to
resolve the actual payload sent to Sprint Int Tcp channel.
In this class we don't care what the payload content is, thus
implementor is responsible to define it.message
- the rpc message