|
|||||||||||
| 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
A Compsite implementation of a TransportChannel
| Field Summary | |
protected TransportChannel |
channel
|
protected SynchronizedBoolean |
closed
|
protected java.net.URI |
currentURI
|
protected long |
failureSleepTime
|
protected int |
retryCount
|
protected SynchronizedBoolean |
started
|
protected java.net.URI[] |
uris
|
protected WireFormat |
wireFormat
|
| Constructor Summary | |
CompositeTransportChannel(WireFormat wireFormat,
java.net.URI[] uris)
|
|
| Method Summary | |
void |
asyncSend(Packet packet)
Asynchronously send a Packet |
protected void |
attemptToConnect(java.net.URI uri)
|
protected void |
configureChannel()
|
protected void |
establishConnection()
|
protected java.net.URI |
extractURI(java.util.List list)
|
protected TransportChannel |
getChannel()
|
boolean |
isMulticast()
|
Receipt |
send(Packet packet)
synchronously send a Packet |
Receipt |
send(Packet packet,
int timeout)
Synchronously send a Packet |
void |
setExceptionListener(ExceptionListener listener)
Set an exception listener to listen for asynchronously generated exceptions |
void |
setPacketListener(PacketListener listener)
Set a listener for Packets |
void |
start()
start listeneing for events |
void |
stop()
close the channel |
java.lang.String |
toString()
|
| 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 |
| Field Detail |
protected WireFormat wireFormat
protected java.net.URI[] uris
protected TransportChannel channel
protected SynchronizedBoolean closed
protected SynchronizedBoolean started
protected int retryCount
protected long failureSleepTime
protected java.net.URI currentURI
| Constructor Detail |
public CompositeTransportChannel(WireFormat wireFormat,
java.net.URI[] uris)
| Method Detail |
public java.lang.String toString()
public void start()
throws JMSException
TransportChannel
JMSException - if an error occurspublic void stop()
stop in interface TransportChannelstop in class AbstractTransportChannel
public Receipt send(Packet packet)
throws JMSException
AbstractTransportChannel
send in interface TransportChannelsend in class AbstractTransportChannelpacket -
JMSException
public Receipt send(Packet packet,
int timeout)
throws JMSException
AbstractTransportChannel
send in interface TransportChannelsend in class AbstractTransportChannelpacket - packet to sendtimeout - amount of time to wait for a receipt
JMSException
public void asyncSend(Packet packet)
throws JMSException
TransportChannel
packet -
JMSExceptionpublic void setPacketListener(PacketListener listener)
AbstractTransportChannel
setPacketListener in interface TransportChannelsetPacketListener in class AbstractTransportChannellistener - public void setExceptionListener(ExceptionListener listener)
AbstractTransportChannel
setExceptionListener in interface TransportChannelsetExceptionListener in class AbstractTransportChannellistener - public boolean isMulticast()
protected void establishConnection()
throws JMSException
JMSException
protected TransportChannel getChannel()
throws JMSException
JMSExceptionprotected void configureChannel()
protected java.net.URI extractURI(java.util.List list)
throws JMSException
JMSException
protected void attemptToConnect(java.net.URI uri)
throws JMSException
JMSException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||