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(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() |
getNext, getPeerCertificates, getReceiveCounter, getRemoteAddress, getTransportListener, getWireFormat, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, reconnect, setPeerCertificates, setTransportListener, start, transportInterupted, transportResumed, updateURIspublic ResponseCorrelator(Transport next)
public ResponseCorrelator(Transport next, IntSequenceGenerator sequenceGenerator)
public void oneway(Object o) throws IOException
Transportoneway in interface Transportoneway in class TransportFilterIOExceptionpublic FutureResponse asyncRequest(Object o, ResponseCallback responseCallback) throws IOException
TransportasyncRequest in interface TransportasyncRequest in class TransportFilterresponseCallback - TODOIOExceptionpublic Object request(Object command) throws IOException
Transportrequest in interface Transportrequest in class TransportFilterIOExceptionpublic Object request(Object command, int timeout) throws IOException
Transportrequest in interface Transportrequest in class TransportFilterIOExceptionpublic void onCommand(Object o)
TransportListeneronCommand in interface TransportListeneronCommand in class TransportFilterpublic void onException(IOException error)
onException in interface TransportListeneronException in class TransportFilterpublic void stop() throws Exception
stop in interface Servicestop in class TransportFilterExceptionService.stop()public IntSequenceGenerator getSequenceGenerator()
public String toString()
toString in class TransportFilterCopyright © 2005–2020 The Apache Software Foundation. All rights reserved.