|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.transport.TransportFilter
public class TransportFilter
| Field Summary | |
|---|---|
protected Transport |
next
|
protected TransportListener |
transportListener
|
| Constructor Summary | |
|---|---|
TransportFilter(Transport next)
|
|
| Method Summary | ||
|---|---|---|
FutureResponse |
asyncRequest(Object command,
ResponseCallback responseCallback)
An asynchronous request response where the Receipt will be returned in the future. |
|
Transport |
getNext()
|
|
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 |
|
boolean |
isReconnectSupported()
|
|
boolean |
isUpdateURIsSupported()
|
|
|
narrow(Class<T> target)
|
|
void |
onCommand(Object command)
called to process a command |
|
void |
oneway(Object command)
A one way asynchronous send |
|
void |
onException(IOException error)
An unrecoverable exception has occured on the transport |
|
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 channelListener)
Registers an inbound command listener |
|
void |
start()
|
|
void |
stop()
|
|
String |
toString()
|
|
void |
transportInterupted()
The transport has suffered an interuption from which it hopes to recover |
|
void |
transportResumed()
The transport has resumed after an interuption |
|
void |
updateURIs(boolean rebalance,
URI[] uris)
Provide a list of available alternative locations |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final Transport next
protected TransportListener transportListener
| Constructor Detail |
|---|
public TransportFilter(Transport next)
| Method Detail |
|---|
public TransportListener getTransportListener()
Transport
getTransportListener in interface Transportpublic void setTransportListener(TransportListener channelListener)
Transport
setTransportListener in interface Transport
public void start()
throws Exception
start in interface ServiceIOException - if the next channel has not been set.
ExceptionService.start()
public void stop()
throws Exception
stop in interface ServiceExceptionService.stop()public void onCommand(Object command)
TransportListener
onCommand in interface TransportListenerpublic Transport getNext()
public String toString()
toString in class Object
public void oneway(Object command)
throws IOException
Transport
oneway in interface TransportIOException
public FutureResponse asyncRequest(Object command,
ResponseCallback responseCallback)
throws IOException
Transport
asyncRequest in interface TransportresponseCallback - TODO
IOException
public Object request(Object command)
throws IOException
Transport
request in interface TransportIOException
public Object request(Object command,
int timeout)
throws IOException
Transport
request in interface TransportIOExceptionpublic void onException(IOException error)
TransportListener
onException in interface TransportListenerpublic void transportInterupted()
TransportListener
transportInterupted in interface TransportListenerpublic void transportResumed()
TransportListener
transportResumed in interface TransportListenerpublic <T> T narrow(Class<T> target)
narrow in interface Transportpublic String getRemoteAddress()
getRemoteAddress in interface Transportpublic boolean isFaultTolerant()
Transport
isFaultTolerant in interface TransportTransport.isFaultTolerant()public boolean isDisposed()
isDisposed in interface Transportpublic boolean isConnected()
isConnected in interface Transport
public void reconnect(URI uri)
throws IOException
Transport
reconnect in interface TransportIOException - on failure of if not supportedpublic int getReceiveCounter()
Transport
getReceiveCounter in interface Transportpublic boolean isReconnectSupported()
isReconnectSupported in interface Transportpublic boolean isUpdateURIsSupported()
isUpdateURIsSupported in interface Transport
public void updateURIs(boolean rebalance,
URI[] uris)
throws IOException
Transport
updateURIs in interface TransportIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||