|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.activemq.transport.TransportServerChannelSupport
org.codehaus.activemq.transport.tcp.TcpTransportServerChannel
Binds to a well known port and listens for Sockets ...
Field Summary | |
protected java.lang.String |
bindAddressURI
|
protected static int |
DEFEAULT_BACKLOG
|
Constructor Summary | |
TcpTransportServerChannel(WireFormat wireFormat,
java.net.ServerSocket serverSocket)
|
|
TcpTransportServerChannel(WireFormat wireFormat,
java.net.URI bindAddr)
Default Constructor |
Method Summary | |
protected java.net.ServerSocket |
createServerSocket(java.net.URI bind)
Factory method to create a new ServerSocket |
int |
getBacklog()
|
int |
getMaxOutstandingMessages()
|
boolean |
isUseAsyncSend()
|
void |
run()
pull Sockets from the ServerSocket |
void |
setBacklog(int backlog)
|
void |
setMaxOutstandingMessages(int maxOutstandingMessages)
|
void |
setUseAsyncSend(boolean useAsyncSend)
|
void |
start()
start listeneing for events |
void |
stop()
close the ServerChannel |
java.lang.String |
toString()
|
Methods inherited from class org.codehaus.activemq.transport.TransportServerChannelSupport |
addClient, setTransportChannelListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final int DEFEAULT_BACKLOG
protected java.lang.String bindAddressURI
Constructor Detail |
public TcpTransportServerChannel(WireFormat wireFormat, java.net.URI bindAddr) throws JMSException
bindAddr
-
JMSException
public TcpTransportServerChannel(WireFormat wireFormat, java.net.ServerSocket serverSocket)
Method Detail |
public void stop()
stop
in interface TransportServerChannel
stop
in class TransportServerChannelSupport
public void start() throws JMSException
start
in interface TransportServerChannel
start
in class TransportServerChannelSupport
JMSException
- if an error occurspublic java.lang.String toString()
public void run()
run
in interface java.lang.Runnable
public boolean isUseAsyncSend()
public void setUseAsyncSend(boolean useAsyncSend)
public int getMaxOutstandingMessages()
public void setMaxOutstandingMessages(int maxOutstandingMessages)
public int getBacklog()
public void setBacklog(int backlog)
protected java.net.ServerSocket createServerSocket(java.net.URI bind) throws java.net.UnknownHostException, java.io.IOException
java.net.UnknownHostException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |