public abstract class TransportSupport extends ServiceSupport implements Transport
| Constructor and Description |
|---|
TransportSupport() |
| Modifier and Type | Method and Description |
|---|---|
FutureResponse |
asyncRequest(java.lang.Object command,
ResponseCallback responseCallback)
An asynchronous request response where the Receipt will be returned in
the future.
|
protected void |
checkStarted() |
void |
doConsume(java.lang.Object command)
Process the inbound command
|
TransportListener |
getTransportListener()
Returns the current transport listener
|
boolean |
isConnected() |
boolean |
isDisposed() |
boolean |
isFaultTolerant()
Indicates if the transport can handle faults
|
boolean |
isReconnectSupported() |
boolean |
isUpdateURIsSupported() |
<T> T |
narrow(java.lang.Class<T> target)
narrow acceptance
|
void |
onException(java.io.IOException e)
Passes any IO exceptions into the transport listener
|
void |
reconnect(java.net.URI uri)
reconnect to another location
|
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
|
void |
updateURIs(boolean reblance,
java.net.URI[] uris)
Provide a list of available alternative locations
|
addServiceListener, dispose, doStart, doStop, isStarted, isStopped, isStopping, removeServiceListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReceiveCounter, getRemoteAddress, onewaypublic TransportSupport()
public TransportListener getTransportListener()
getTransportListener in interface Transportpublic void setTransportListener(TransportListener commandListener)
setTransportListener in interface TransportcommandListener - public <T> T narrow(java.lang.Class<T> target)
public FutureResponse asyncRequest(java.lang.Object command, ResponseCallback responseCallback) throws java.io.IOException
TransportasyncRequest in interface TransportresponseCallback - TODOjava.io.IOExceptionpublic java.lang.Object request(java.lang.Object command) throws java.io.IOException
Transportpublic java.lang.Object request(java.lang.Object command, int timeout) throws java.io.IOException
Transportpublic void doConsume(java.lang.Object command)
public void onException(java.io.IOException e)
protected void checkStarted() throws java.io.IOException
java.io.IOExceptionpublic boolean isFaultTolerant()
TransportisFaultTolerant in interface Transportpublic void reconnect(java.net.URI uri) throws java.io.IOException
Transportpublic boolean isReconnectSupported()
isReconnectSupported in interface Transportpublic boolean isUpdateURIsSupported()
isUpdateURIsSupported in interface Transportpublic void updateURIs(boolean reblance, java.net.URI[] uris) throws java.io.IOException
TransportupdateURIs in interface Transportjava.io.IOExceptionpublic boolean isDisposed()
isDisposed in interface Transportpublic boolean isConnected()
isConnected in interface TransportCopyright © 2005-2012. All Rights Reserved.