|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.activemq.transport.AbstractTransportChannel
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, retryCount, started, uris, wireFormat |
Constructor Summary | |
ReliableTransportChannel(WireFormat wireFormat,
java.net.URI[] uris)
Constructor for ReliableTransportChannel |
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)
|
protected java.net.URI |
extractURI(java.util.List list)
|
protected void |
fireException(JMSException jmsEx)
Fire a JMSException to the exception listener |
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()
close the channel |
java.lang.String |
toString()
|
Methods inherited from class org.codehaus.activemq.transport.composite.CompositeTransportChannel |
attemptToConnect, establishConnection, getChannel, isMulticast, send, setExceptionListener, setPacketListener |
Methods inherited from class org.codehaus.activemq.transport.AbstractTransportChannel |
addTransportStatusEventListener, doAsyncSend, doConsumePacket, doHandleReceipt, fireStatusEvent, fireStatusEvent, getClientID, getExceptionListener, getPacketListener, getTransportChannelListener, onAsyncException, removeTransportStatusEventListener, setClientID, setTransportChannelListener, stopExecutor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ReliableTransportChannel(WireFormat wireFormat, java.net.URI[] uris) throws JMSException
wireFormat
- uris
-
JMSException
Method Detail |
public java.lang.String toString()
toString
in class CompositeTransportChannel
public void start() throws JMSException
start
in interface TransportChannel
start
in class CompositeTransportChannel
JMSException
public Receipt send(Packet packet, int timeout) throws JMSException
AbstractTransportChannel
send
in interface TransportChannel
send
in class CompositeTransportChannel
packet
- timeout
-
JMSException
public void asyncSend(Packet packet) throws JMSException
TransportChannel
asyncSend
in interface TransportChannel
asyncSend
in class CompositeTransportChannel
JMSException
protected void configureChannel()
configureChannel
in class CompositeTransportChannel
protected java.net.URI extractURI(java.util.List list) throws JMSException
extractURI
in class CompositeTransportChannel
JMSException
public void consume(Packet packet)
consume
in interface PacketListener
packet
- to consumepublic void onException(JMSException jmsEx)
onException
in interface ExceptionListener
jmsEx
- public void stop()
CompositeTransportChannel
stop
in interface TransportChannel
stop
in class CompositeTransportChannel
protected void fireException(JMSException jmsEx)
jmsEx
- protected void doReconnect(TransportChannel currentChannel) throws JMSException
JMSException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |