public class RabbitMQResponseTransport extends WorkManager<InvocationWorker,RabbitMQMessage> implements WorkerFactory<InvocationWorker,RabbitMQMessage>, ResponseTransport
| Constructor and Description |
|---|
RabbitMQResponseTransport(MetricConfiguration metricConfiguration,
RabbitMQConnector rabbitMQConnector,
NameConfiguration nameConfiguration,
Class<InvocationWorker> workerClass,
SignalCodec signalCodec,
String serviceGroup,
int clusterSize,
int concurrencyLimit,
int messageTTLSeconds,
boolean autoAcknowledge) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InvocationWorker |
createWorker(MetricConfiguration metricConfiguration,
WorkQueue<RabbitMQMessage> transferQueue) |
String |
getInstanceId() |
TransportState |
getState() |
void |
pause() |
void |
play() |
String |
register(Class<?> serviceInterface,
WiredService targetService) |
void |
transmit(String callerId,
String correlationId,
boolean error,
String nativeType,
Object result) |
execute, getConcurrencyLimit, getMetricConfiguration, shutDown, startUppublic RabbitMQResponseTransport(MetricConfiguration metricConfiguration, RabbitMQConnector rabbitMQConnector, NameConfiguration nameConfiguration, Class<InvocationWorker> workerClass, SignalCodec signalCodec, String serviceGroup, int clusterSize, int concurrencyLimit, int messageTTLSeconds, boolean autoAcknowledge) throws IOException, InterruptedException, TimeoutException
public String getInstanceId()
getInstanceId in interface ResponseTransportpublic String register(Class<?> serviceInterface, WiredService targetService) throws Exception
register in interface ResponseTransportExceptionpublic InvocationWorker createWorker(MetricConfiguration metricConfiguration, WorkQueue<RabbitMQMessage> transferQueue)
createWorker in interface WorkerFactory<InvocationWorker,RabbitMQMessage>public TransportState getState()
getState in interface ResponseTransportpublic void play()
throws Exception
play in interface ResponseTransportExceptionpublic void pause()
throws Exception
pause in interface ResponseTransportExceptionpublic void transmit(String callerId, String correlationId, boolean error, String nativeType, Object result) throws Throwable
transmit in interface ResponseTransportThrowablepublic void close()
throws IOException,
InterruptedException,
TimeoutException
close in interface ResponseTransportIOExceptionInterruptedExceptionTimeoutExceptionCopyright © 2019. All rights reserved.