|
|||||||||||
| 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.vm.VmTransportChannel
A VM implementation of a TransportChannel
| Field Summary |
| Fields inherited from class org.codehaus.activemq.transport.TransportChannelSupport |
pendingStop, transportConnected |
| Constructor Summary | |
VmTransportChannel()
|
|
VmTransportChannel(Channel sendChannel,
Channel receiveChannel)
|
|
VmTransportChannel(int capacity)
|
|
| Method Summary | |
void |
asyncSend(Packet packet)
Asynchronously send a Packet |
boolean |
canProcessWireFormatVersion(int version)
Can this wireformat process packets of this version |
void |
connect(BrokerConnector brokerConnector)
Connects the client side transport channel with the broker |
protected Channel |
createChannel(int capacity)
|
protected PacketListener |
createPacketListenerSender()
Creates a sender PacketListener which handles any receipts then delegates to the ultimate PacketListener (typically the JMS client) |
VmTransportChannel |
createServerSide()
Creates the server side version of this client side channel. |
protected void |
doClose(Exception ex)
|
int |
getCurrentWireFormatVersion()
|
protected static int |
getNextThreadId()
|
int |
getReceiveCapacity()
|
Channel |
getReceiveChannel()
|
int |
getSendCapacity()
|
Channel |
getSendChannel()
|
boolean |
isAsyncSend()
|
boolean |
isMulticast()
|
void |
run()
reads packets from a Socket |
void |
setAsyncSend(boolean asyncSend)
|
void |
setPacketListener(PacketListener listener)
Set a listener for Packets |
void |
setReceiveCapacity(int receiveCapacity)
|
void |
setReceiveChannel(Channel receiveChannel)
|
void |
setSendCapacity(int sendCapacity)
|
void |
setSendChannel(Channel sendChannel)
|
void |
start()
start listeneing for events |
void |
stop()
close the channel |
String |
toString()
pretty print for object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public VmTransportChannel()
public VmTransportChannel(Channel sendChannel,
Channel receiveChannel)
public VmTransportChannel(int capacity)
| Method Detail |
public void start()
throws JMSException
TransportChannel
start in interface TransportChannelJMSException - if an error occurspublic void stop()
TransportChannelSupport
stop in interface TransportChannelstop in class TransportChannelSupport
public void asyncSend(Packet packet)
throws JMSException
asyncSend in interface TransportChannelpacket -
JMSExceptionpublic boolean isMulticast()
isMulticast in interface TransportChannelpublic void run()
run in interface Runnablepublic String toString()
public void connect(BrokerConnector brokerConnector)
throws JMSException
JMSException
public VmTransportChannel createServerSide()
throws JMSException
JMSExceptionpublic void setPacketListener(PacketListener listener)
TransportChannelSupport
setPacketListener in interface TransportChannelsetPacketListener in class TransportChannelSupportlistener - public boolean canProcessWireFormatVersion(int version)
canProcessWireFormatVersion in interface TransportChannelversion - the version number to test
public int getCurrentWireFormatVersion()
getCurrentWireFormatVersion in interface TransportChannelpublic int getReceiveCapacity()
public void setReceiveCapacity(int receiveCapacity)
public int getSendCapacity()
public void setSendCapacity(int sendCapacity)
public boolean isAsyncSend()
public void setAsyncSend(boolean asyncSend)
public Channel getSendChannel()
public void setSendChannel(Channel sendChannel)
public Channel getReceiveChannel()
public void setReceiveChannel(Channel receiveChannel)
protected static int getNextThreadId()
protected Channel createChannel(int capacity)
protected PacketListener createPacketListenerSender()
protected void doClose(Exception ex)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||