|
||||||||||
| 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.MutexTransport
public class MutexTransport
Thread safe Transport Filter that serializes calls to and from the Transport Stack.
| Field Summary |
|---|
| Fields inherited from class org.apache.activemq.transport.TransportFilter |
|---|
next, transportListener |
| Constructor Summary | |
|---|---|
MutexTransport(Transport next)
|
|
MutexTransport(Transport next,
boolean syncOnCommand)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.apache.activemq.transport.TransportFilter |
|---|
getNext, getReceiveCounter, getRemoteAddress, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, onException, reconnect, setTransportListener, start, stop, transportInterupted, transportResumed, updateURIs |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MutexTransport(Transport next)
public MutexTransport(Transport next,
boolean syncOnCommand)
| Method Detail |
|---|
public void onCommand(Object command)
TransportListener
onCommand in interface TransportListeneronCommand in class TransportFilter
public FutureResponse asyncRequest(Object command,
ResponseCallback responseCallback)
throws IOException
Transport
asyncRequest in interface TransportasyncRequest in class TransportFilterresponseCallback - TODO
IOException
public void oneway(Object command)
throws IOException
Transport
oneway in interface Transportoneway in class TransportFilterIOException
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 String toString()
toString in class TransportFilterpublic boolean isSyncOnCommand()
public void setSyncOnCommand(boolean syncOnCommand)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||