Package org.apache.activemq.transport
Class TransportServerThreadSupport
java.lang.Object
org.apache.activemq.util.ServiceSupport
org.apache.activemq.transport.TransportServerSupport
org.apache.activemq.transport.TransportServerThreadSupport
- All Implemented Interfaces:
Runnable,Service,TransportServer
- Direct Known Subclasses:
TcpTransportServer
public abstract class TransportServerThreadSupport
extends TransportServerSupport
implements Runnable
A useful base class for implementations of
TransportServer which uses
a background thread to accept new connections.-
Field Summary
Fields inherited from class org.apache.activemq.transport.TransportServerSupport
allowLinkStealing, transportOptions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoStart()protected voiddoStop(ServiceStopper stopper) longbooleanisDaemon()booleanvoidsetDaemon(boolean daemon) Sets whether the background read thread is a daemon thread or notvoidsetJoinOnStop(boolean joinOnStop) Sets whether the background read thread is joined with (waited for) on a stopvoidsetStackSize(long stackSize) Methods inherited from class org.apache.activemq.transport.TransportServerSupport
getAcceptListener, getBindLocation, getConnectURI, isAllowLinkStealing, onAcceptError, setAcceptListener, setAllowLinkStealing, setBindLocation, setConnectURI, setTransportOptionMethods inherited from class org.apache.activemq.util.ServiceSupport
addServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.transport.TransportServer
getMaxConnectionExceededCount, getSocketAddress, isSslServer, resetStatistics, setBrokerInfo
-
Constructor Details
-
TransportServerThreadSupport
-
-
Method Details
-
isDaemon
public boolean isDaemon() -
setDaemon
public void setDaemon(boolean daemon) Sets whether the background read thread is a daemon thread or not -
isJoinOnStop
public boolean isJoinOnStop() -
setJoinOnStop
public void setJoinOnStop(boolean joinOnStop) Sets whether the background read thread is joined with (waited for) on a stop -
doStart
- Specified by:
doStartin classServiceSupport- Throws:
Exception
-
doStop
- Specified by:
doStopin classServiceSupport- Throws:
Exception
-
getStackSize
public long getStackSize()- Returns:
- the stackSize
-
setStackSize
public void setStackSize(long stackSize) - Parameters:
stackSize- the stackSize to set
-