|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.codehaus.activemq.transport.TransportChannelSupport
org.codehaus.activemq.transport.composite.CompositeTransportChannel
org.codehaus.activemq.transport.reliable.ReliableTransportChannel
A Compsite implementation of a TransportChannel
| Field Summary |
| Fields inherited from class org.codehaus.activemq.transport.composite.CompositeTransportChannel |
channel, closed, currentURI, failureSleepTime, maximumRetries, started, uris, wireFormat |
| Fields inherited from class org.codehaus.activemq.transport.TransportChannelSupport |
pendingStop, transportConnected |
| Constructor Summary | |
ReliableTransportChannel(WireFormat wireFormat)
Construct this transport |
|
ReliableTransportChannel(WireFormat wireFormat,
List uris)
Construct this transport |
|
| Method Summary | |
void |
asyncSend(Packet packet)
Asynchronously send a Packet |
protected void |
configureChannel()
|
void |
consume(Packet packet)
consume a packet from the enbedded channel |
protected void |
doReconnect(TransportChannel currentChannel,
long timeout)
|
protected URI |
extractURI(List list)
|
protected void |
fireException(JMSException jmsEx)
Fire a JMSException to the exception listener |
protected TransportChannel |
getEstablishedChannel(long timeout)
|
void |
onException(JMSException jmsEx)
handle exception from the embedded channel |
Receipt |
send(Packet packet,
int timeout)
Synchronously send a Packet |
void |
start()
start the connection |
void |
stop()
stop this channel |
String |
toString()
|
| Methods inherited from class org.codehaus.activemq.transport.composite.CompositeTransportChannel |
attemptToConnect, canProcessWireFormatVersion, establishConnection, getChannel, getCurrentWireFormatVersion, getEstablishConnectionTimeout, getFailureSleepTime, getMaximumRetries, getUris, isMulticast, send, setEstablishConnectionTimeout, setExceptionListener, setFailureSleepTime, setMaximumRetries, setPacketListener, setUris |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ReliableTransportChannel(WireFormat wireFormat)
wireFormat -
public ReliableTransportChannel(WireFormat wireFormat,
List uris)
wireFormat - uris - | Method Detail |
public String toString()
toString in class CompositeTransportChannel
public void start()
throws JMSException
start in interface TransportChannelstart in class CompositeTransportChannelJMSException
public Receipt send(Packet packet,
int timeout)
throws JMSException
TransportChannelSupport
send in interface TransportChannelsend in class CompositeTransportChannelpacket - timeout -
JMSException
public void asyncSend(Packet packet)
throws JMSException
TransportChannel
asyncSend in interface TransportChannelasyncSend in class CompositeTransportChannelpacket -
JMSExceptionprotected void configureChannel()
configureChannel in class CompositeTransportChannel
protected URI extractURI(List list)
throws JMSException
extractURI in class CompositeTransportChannelJMSExceptionpublic void consume(Packet packet)
consume in interface PacketListenerpacket - to consumepublic void onException(JMSException jmsEx)
onException in interface ExceptionListenerjmsEx - public void stop()
stop in interface TransportChannelstop in class CompositeTransportChannelprotected void fireException(JMSException jmsEx)
jmsEx -
protected TransportChannel getEstablishedChannel(long timeout)
throws JMSException
JMSException
protected void doReconnect(TransportChannel currentChannel,
long timeout)
throws JMSException
JMSException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||