|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.transport.TransportFilter
org.apache.activemq.transport.ResponseCorrelator
public class ResponseCorrelator
Adds the incrementing sequence number to commands along with performing the correlation of responses to requests to create a blocking request-response semantics.
| Field Summary |
|---|
| Fields inherited from class org.apache.activemq.transport.TransportFilter |
|---|
next, transportListener |
| Constructor Summary | |
|---|---|
ResponseCorrelator(Transport next)
|
|
ResponseCorrelator(Transport next,
IntSequenceGenerator sequenceGenerator)
|
|
| Method Summary | |
|---|---|
FutureResponse |
asyncRequest(Object o,
ResponseCallback responseCallback)
An asynchronous request response where the Receipt will be returned in the future. |
IntSequenceGenerator |
getSequenceGenerator()
|
void |
onCommand(Object o)
called to process a command |
void |
oneway(Object o)
A one way asynchronous send |
void |
onException(IOException error)
If an async exception occurs, then assume no responses will arrive for any of current requests. |
Object |
request(Object command)
A synchronous request response |
Object |
request(Object command,
int timeout)
A synchronous request response |
void |
stop()
|
String |
toString()
|
| Methods inherited from class org.apache.activemq.transport.TransportFilter |
|---|
getNext, getReceiveCounter, getRemoteAddress, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, reconnect, setTransportListener, start, transportInterupted, transportResumed, updateURIs |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ResponseCorrelator(Transport next)
public ResponseCorrelator(Transport next,
IntSequenceGenerator sequenceGenerator)
| Method Detail |
|---|
public void oneway(Object o)
throws IOException
Transport
oneway in interface Transportoneway in class TransportFilterIOException
public FutureResponse asyncRequest(Object o,
ResponseCallback responseCallback)
throws IOException
Transport
asyncRequest in interface TransportasyncRequest in class TransportFilterresponseCallback - TODO
IOException
public Object request(Object command)
throws IOException
Transport
request in interface Transportrequest in class TransportFilterIOException
public Object request(Object command,
int timeout)
throws IOException
Transport
request in interface Transportrequest in class TransportFilterIOExceptionpublic void onCommand(Object o)
TransportListener
onCommand in interface TransportListeneronCommand in class TransportFilterpublic void onException(IOException error)
onException in interface TransportListeneronException in class TransportFilter
public void stop()
throws Exception
stop in interface Servicestop in class TransportFilterExceptionService.stop()public IntSequenceGenerator getSequenceGenerator()
public String toString()
toString in class TransportFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||