|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.activemq.transport.TransportChannelSupport
org.activemq.transport.composite.CompositeTransportChannel
org.activemq.transport.reliable.ReliableTransportChannel
A Compsite implementation of a TransportChannel
| Field Summary |
| Fields inherited from class org.activemq.transport.composite.CompositeTransportChannel |
channel, closed, currentURI, establishConnectionTimeout, failureSleepTime, incrementTimeout, maximumRetries, maximumTimeout, started, uris |
| Fields inherited from class org.activemq.transport.TransportChannelSupport |
cachingEnabled, currentWireFormat, noDelay, pendingStop, transportConnected, usedInternally |
| Constructor Summary | |
ReliableTransportChannel(WireFormat wireFormat)
Construct this transport |
|
ReliableTransportChannel(WireFormat wireFormat,
java.util.List uris)
Construct this transport |
|
| Method Summary | |
void |
asyncSend(Packet packet)
Asynchronously send a Packet |
ReceiptHolder |
asyncSendWithReceipt(Packet packet)
Asynchronously send a Packet with receipt. |
protected void |
configureChannel()
|
void |
consume(Packet packet)
consume a packet from the enbedded channel |
protected void |
doReconnect(TransportChannel currentChannel,
long timeout)
|
protected java.net.URI |
extractURI(java.util.List list)
|
protected void |
fireException(javax.jms.JMSException jmsEx)
Fire a JMSException to the exception listener |
protected TransportChannel |
getEstablishedChannel(long timeout)
|
long |
getKeepAliveTimeout()
|
void |
onException(javax.jms.JMSException jmsEx)
handle exception from the embedded channel |
Receipt |
send(Packet packet,
int timeout)
Synchronously send a Packet |
void |
setKeepAliveTimeout(long timeoutInterval)
Sets the number of milliseconds this channel can be idle after a keep-alive packet has been sent without being disconnected. |
void |
stop()
stop this channel |
java.lang.String |
toString()
|
| 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,
java.util.List uris)
wireFormat - uris - | Method Detail |
public java.lang.String toString()
toString in class CompositeTransportChannelpublic void setKeepAliveTimeout(long timeoutInterval)
timeoutInterval - the timeout intervalpublic long getKeepAliveTimeout()
public Receipt send(Packet packet,
int timeout)
throws javax.jms.JMSException
TransportChannelSupport
send in interface TransportChannelsend in class CompositeTransportChannelpacket - timeout -
javax.jms.JMSException
public void asyncSend(Packet packet)
throws javax.jms.JMSException
TransportChannel
asyncSend in interface TransportChannelasyncSend in class CompositeTransportChannelpacket -
javax.jms.JMSException
public ReceiptHolder asyncSendWithReceipt(Packet packet)
throws javax.jms.JMSException
TransportChannelSupport
asyncSendWithReceipt in interface TransportChannelasyncSendWithReceipt in class CompositeTransportChanneljavax.jms.JMSExceptionprotected void configureChannel()
configureChannel in class CompositeTransportChannel
protected java.net.URI extractURI(java.util.List list)
throws javax.jms.JMSException
extractURI in class CompositeTransportChanneljavax.jms.JMSExceptionpublic void consume(Packet packet)
consume in interface PacketListenerpacket - to consumepublic void onException(javax.jms.JMSException jmsEx)
onException in interface javax.jms.ExceptionListenerjmsEx - public void stop()
stop in interface TransportChannelstop in class CompositeTransportChannelprotected void fireException(javax.jms.JMSException jmsEx)
jmsEx -
protected TransportChannel getEstablishedChannel(long timeout)
throws javax.jms.JMSException
javax.jms.JMSException
protected void doReconnect(TransportChannel currentChannel,
long timeout)
throws javax.jms.JMSException
javax.jms.JMSException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||