public class RabbitMQResponseTransport extends WorkManager<InvocationWorker,RabbitMQMessage> implements MetricConfigurationProvider, 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) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InvocationWorker |
createWorker(MetricConfiguration metricConfiguration,
TransferQueue<RabbitMQMessage> transferQueue) |
String |
getInstanceId() |
String |
register(Class<?> serviceInterface,
WiredService targetService) |
void |
transmit(String callerId,
String correlationId,
boolean error,
String nativeType,
Object result) |
execute, getConcurrencyLimit, getMetricConfiguration, shutDown, startUpclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetricConfigurationpublic RabbitMQResponseTransport(MetricConfiguration metricConfiguration, RabbitMQConnector rabbitMQConnector, NameConfiguration nameConfiguration, Class<InvocationWorker> workerClass, SignalCodec signalCodec, String serviceGroup, int clusterSize, int concurrencyLimit, int messageTTLSeconds) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic String getInstanceId()
getInstanceId in interface ResponseTransportpublic String register(Class<?> serviceInterface, WiredService targetService) throws Exception
register in interface ResponseTransportExceptionpublic InvocationWorker createWorker(MetricConfiguration metricConfiguration, TransferQueue<RabbitMQMessage> transferQueue)
createWorker in interface WorkerFactory<InvocationWorker,RabbitMQMessage>public void transmit(String callerId, String correlationId, boolean error, String nativeType, Object result) throws Throwable
transmit in interface ResponseTransportThrowablepublic void close()
throws Exception
close in interface ResponseTransportExceptionCopyright © 2016. All rights reserved.