public class JmsResponseTransport extends WorkManager<InvocationWorker,javax.jms.Message> implements MetricConfigurationProvider, WorkerFactory<InvocationWorker,javax.jms.Message>, ResponseTransport
| Constructor and Description |
|---|
JmsResponseTransport(MetricConfiguration metricConfiguration,
RoutingFactories routingFactories,
MessagePolicy messagePolicy,
ReconnectionPolicy reconnectionPolicy,
SignalCodec signalCodec,
String serviceGroup,
int clusterSize,
int concurrencyLimit,
int maximumMessageLength) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
InvocationWorker |
createWorker(MetricConfiguration metricConfiguration,
WorkQueue<javax.jms.Message> workQueue) |
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, startUpclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetricConfigurationpublic JmsResponseTransport(MetricConfiguration metricConfiguration, RoutingFactories routingFactories, MessagePolicy messagePolicy, ReconnectionPolicy reconnectionPolicy, SignalCodec signalCodec, String serviceGroup, int clusterSize, int concurrencyLimit, int maximumMessageLength) throws InterruptedException, javax.jms.JMSException, TransportException
InterruptedExceptionjavax.jms.JMSExceptionTransportExceptionpublic String getInstanceId()
getInstanceId in interface ResponseTransportpublic String register(Class<?> serviceInterface, WiredService targetService) throws NoSuchMethodException, ServiceDefinitionException
register in interface ResponseTransportNoSuchMethodExceptionServiceDefinitionExceptionpublic InvocationWorker createWorker(MetricConfiguration metricConfiguration, WorkQueue<javax.jms.Message> workQueue)
createWorker in interface WorkerFactory<InvocationWorker,javax.jms.Message>public TransportState getState()
getState in interface ResponseTransportpublic void play()
throws javax.jms.JMSException
play in interface ResponseTransportjavax.jms.JMSExceptionpublic void pause()
throws javax.jms.JMSException
pause in interface ResponseTransportjavax.jms.JMSExceptionpublic void transmit(String callerId, String correlationId, boolean error, String nativeType, Object result) throws Throwable
transmit in interface ResponseTransportThrowablepublic void close()
throws javax.jms.JMSException,
InterruptedException
close in interface ResponseTransportjavax.jms.JMSExceptionInterruptedExceptionCopyright © 2018. All rights reserved.