|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Transport
Represents the client side of a transport allowing messages to be sent synchronously, asynchronously and consumed.
Method Summary | |
---|---|
FutureResponse |
asyncRequest(java.lang.Object command,
ResponseCallback responseCallback)
An asynchronous request response where the Receipt will be returned in the future. |
java.lang.String |
getRemoteAddress()
|
TransportListener |
getTransportListener()
Returns the current transport listener |
java.lang.Object |
narrow(java.lang.Class target)
|
void |
oneway(java.lang.Object command)
A one way asynchronous send |
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 |
setTransportListener(TransportListener commandListener)
Registers an inbound command listener |
Methods inherited from interface org.apache.activemq.Service |
---|
start, stop |
Method Detail |
---|
void oneway(java.lang.Object command) throws java.io.IOException
command
-
java.io.IOException
FutureResponse asyncRequest(java.lang.Object command, ResponseCallback responseCallback) throws java.io.IOException
command
- responseCallback
- TODO
java.io.IOException
java.lang.Object request(java.lang.Object command) throws java.io.IOException
command
-
java.io.IOException
java.lang.Object request(java.lang.Object command, int timeout) throws java.io.IOException
command
- timeout
-
java.io.IOException
TransportListener getTransportListener()
void setTransportListener(TransportListener commandListener)
commandListener
- java.lang.Object narrow(java.lang.Class target)
target
-
java.lang.String getRemoteAddress()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |