public class MutexTransport extends TransportFilter
next, transportListener| Constructor and Description |
|---|
MutexTransport(Transport next) |
MutexTransport(Transport next,
boolean syncOnCommand) |
| Modifier and Type | Method and Description |
|---|---|
FutureResponse |
asyncRequest(Object command,
ResponseCallback responseCallback)
An asynchronous request response where the Receipt will be returned in
the future.
|
boolean |
isSyncOnCommand() |
void |
onCommand(Object command)
called to process a command
|
void |
oneway(Object command)
A one way asynchronous send
|
Object |
request(Object command)
A synchronous request response
|
Object |
request(Object command,
int timeout)
A synchronous request response
|
void |
setSyncOnCommand(boolean syncOnCommand) |
String |
toString() |
getNext, getReceiveCounter, getRemoteAddress, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, onException, reconnect, setTransportListener, start, stop, transportInterupted, transportResumed, updateURIspublic MutexTransport(Transport next)
public MutexTransport(Transport next, boolean syncOnCommand)
public void onCommand(Object command)
TransportListeneronCommand in interface TransportListeneronCommand in class TransportFilterpublic FutureResponse asyncRequest(Object command, ResponseCallback responseCallback) throws IOException
TransportasyncRequest in interface TransportasyncRequest in class TransportFilterresponseCallback - TODOIOExceptionpublic void oneway(Object command) throws IOException
Transportoneway in interface Transportoneway in class TransportFilterIOExceptionpublic 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 String toString()
toString in class TransportFilterpublic boolean isSyncOnCommand()
public void setSyncOnCommand(boolean syncOnCommand)
Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.