Class 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.
  • Constructor Details

    • TransportServerThreadSupport

      public TransportServerThreadSupport(URI location)
  • 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

      protected void doStart() throws Exception
      Specified by:
      doStart in class ServiceSupport
      Throws:
      Exception
    • doStop

      protected void doStop(ServiceStopper stopper) throws Exception
      Specified by:
      doStop in class ServiceSupport
      Throws:
      Exception
    • getStackSize

      public long getStackSize()
      Returns:
      the stackSize
    • setStackSize

      public void setStackSize(long stackSize)
      Parameters:
      stackSize - the stackSize to set