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, setTransportOptionaddServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSocketAddress, isSslServer, setBrokerInfopublic 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 ServiceSupportExceptionprotected void doStop(ServiceStopper stopper) throws Exception
doStop in class ServiceSupportExceptionpublic long getStackSize()
public void setStackSize(long stackSize)
stackSize - the stackSize to setCopyright © 2005–2020 The Apache Software Foundation. All rights reserved.