public class ResponseCorrelator extends TransportFilter
next, transportListener| Constructor and Description |
|---|
ResponseCorrelator(Transport next) |
ResponseCorrelator(Transport next,
IntSequenceGenerator sequenceGenerator) |
| Modifier and Type | Method and Description |
|---|---|
FutureResponse |
asyncRequest(java.lang.Object o,
ResponseCallback responseCallback)
An asynchronous request response where the Receipt will be returned in
the future.
|
IntSequenceGenerator |
getSequenceGenerator() |
void |
onCommand(java.lang.Object o)
called to process a command
|
void |
oneway(java.lang.Object o)
A one way asynchronous send
|
void |
onException(java.io.IOException error)
If an async exception occurs, then assume no responses will arrive for
any of current requests.
|
java.lang.Object |
request(java.lang.Object command)
A synchronous request response
|
java.lang.Object |
request(java.lang.Object command,
int timeout)
A synchronous request response
|
void |
stop() |
java.lang.String |
toString() |
getNext, getReceiveCounter, getRemoteAddress, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, reconnect, setTransportListener, start, transportInterupted, transportResumed, updateURIspublic ResponseCorrelator(Transport next)
public ResponseCorrelator(Transport next, IntSequenceGenerator sequenceGenerator)
public void oneway(java.lang.Object o) throws java.io.IOException
Transportoneway in interface Transportoneway in class TransportFilterjava.io.IOExceptionpublic FutureResponse asyncRequest(java.lang.Object o, ResponseCallback responseCallback) throws java.io.IOException
TransportasyncRequest in interface TransportasyncRequest in class TransportFilterresponseCallback - TODOjava.io.IOExceptionpublic java.lang.Object request(java.lang.Object command) throws java.io.IOException
Transportrequest in interface Transportrequest in class TransportFilterjava.io.IOExceptionpublic java.lang.Object request(java.lang.Object command, int timeout) throws java.io.IOException
Transportrequest in interface Transportrequest in class TransportFilterjava.io.IOExceptionpublic void onCommand(java.lang.Object o)
TransportListeneronCommand in interface TransportListeneronCommand in class TransportFilterpublic void onException(java.io.IOException error)
onException in interface TransportListeneronException in class TransportFilterpublic void stop() throws java.lang.Exception
stop in interface Servicestop in class TransportFilterjava.lang.ExceptionService.stop()public IntSequenceGenerator getSequenceGenerator()
public java.lang.String toString()
toString in class TransportFilterCopyright © 2005-2012. All Rights Reserved.