public abstract class TransportServerThreadSupport extends TransportServerSupport implements Runnable
TransportServer
which uses
a background thread to accept new connections.allowLinkStealing, transportOptions
Constructor and Description |
---|
TransportServerThreadSupport(URI location) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop(ServiceStopper stopper) |
long |
getStackSize() |
boolean |
isDaemon() |
boolean |
isJoinOnStop() |
void |
setDaemon(boolean daemon)
Sets whether the background read thread is a daemon thread or not
|
void |
setJoinOnStop(boolean joinOnStop)
Sets whether the background read thread is joined with (waited for) on a
stop
|
void |
setStackSize(long stackSize) |
getAcceptListener, getBindLocation, getConnectURI, isAllowLinkStealing, onAcceptError, setAcceptListener, setAllowLinkStealing, setBindLocation, setConnectURI, setTransportOption
addServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSocketAddress, isSslServer, setBrokerInfo
public TransportServerThreadSupport(URI location)
public boolean isDaemon()
public void setDaemon(boolean daemon)
public boolean isJoinOnStop()
public void setJoinOnStop(boolean joinOnStop)
protected void doStart() throws Exception
doStart
in class ServiceSupport
Exception
protected void doStop(ServiceStopper stopper) throws Exception
doStop
in class ServiceSupport
Exception
public long getStackSize()
public void setStackSize(long stackSize)
stackSize
- the stackSize to setCopyright © 2005–2016 FuseSource, Corp.. All rights reserved.