|
||||||||||
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(Object command,
ResponseCallback responseCallback)
An asynchronous request response where the Receipt will be returned in the future. |
|
int |
getReceiveCounter()
Returns a counter which gets incremented as data is read from the transport. |
|
String |
getRemoteAddress()
|
|
TransportListener |
getTransportListener()
Returns the current transport listener |
|
boolean |
isConnected()
|
|
boolean |
isDisposed()
|
|
boolean |
isFaultTolerant()
Indicates if the transport can handle faults |
|
|
narrow(Class<T> target)
|
|
void |
oneway(Object command)
A one way asynchronous send |
|
void |
reconnect(URI uri)
reconnect to another location |
|
Object |
request(Object command)
A synchronous request response |
|
Object |
request(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(Object command) throws IOException
command
-
IOException
FutureResponse asyncRequest(Object command, ResponseCallback responseCallback) throws IOException
command
- responseCallback
- TODO
IOException
Object request(Object command) throws IOException
command
-
IOException
Object request(Object command, int timeout) throws IOException
command
- timeout
-
IOException
TransportListener getTransportListener()
void setTransportListener(TransportListener commandListener)
commandListener
- <T> T narrow(Class<T> target)
target
-
String getRemoteAddress()
boolean isFaultTolerant()
boolean isDisposed()
boolean isConnected()
void reconnect(URI uri) throws IOException
uri
-
IOException
- on failure of if not supportedint getReceiveCounter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |