public abstract class TransportServerThreadSupport extends TransportServerSupport implements java.lang.Runnable
TransportServer
which uses
a background thread to accept new connections.transportOptions
Constructor and Description |
---|
TransportServerThreadSupport() |
TransportServerThreadSupport(java.net.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, onAcceptError, setAcceptListener, setBindLocation, setConnectURI, setTransportOption
addServiceListener, dispose, isStarted, isStopped, isStopping, removeServiceListener, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSocketAddress, setBrokerInfo
public TransportServerThreadSupport()
public TransportServerThreadSupport(java.net.URI location)
public boolean isDaemon()
public void setDaemon(boolean daemon)
public boolean isJoinOnStop()
public void setJoinOnStop(boolean joinOnStop)
protected void doStart() throws java.lang.Exception
doStart
in class ServiceSupport
java.lang.Exception
protected void doStop(ServiceStopper stopper) throws java.lang.Exception
doStop
in class ServiceSupport
java.lang.Exception
public long getStackSize()
public void setStackSize(long stackSize)
stackSize
- the stackSize to setCopyright © 2005-2012. All Rights Reserved.