Module swim.api

Class AbstractService

java.lang.Object
swim.api.service.AbstractService
All Implemented Interfaces:
Service, swim.io.IpInterface, swim.util.Log

public class AbstractService extends Object implements Service, swim.io.IpInterface, swim.util.Log
  • Field Details

  • Constructor Details

    • AbstractService

      public AbstractService(ServiceContext context)
    • AbstractService

      public AbstractService()
  • Method Details

    • serviceContext

      public ServiceContext serviceContext()
      Specified by:
      serviceContext in interface Service
    • schedule

      public swim.concurrent.Schedule schedule()
    • stage

      public swim.concurrent.Stage stage()
    • ipSettings

      public swim.io.IpSettings ipSettings()
      Specified by:
      ipSettings in interface swim.io.IpInterface
    • bindTcp

      public swim.io.IpServiceRef bindTcp(InetSocketAddress localAddress, swim.io.IpService service, swim.io.IpSettings ipSettings)
      Specified by:
      bindTcp in interface swim.io.IpInterface
    • bindTls

      public swim.io.IpServiceRef bindTls(InetSocketAddress localAddress, swim.io.IpService service, swim.io.IpSettings ipSettings)
      Specified by:
      bindTls in interface swim.io.IpInterface
    • connectTcp

      public swim.io.IpSocketRef connectTcp(InetSocketAddress remoteAddress, swim.io.IpSocket socket, swim.io.IpSettings ipSettings)
      Specified by:
      connectTcp in interface swim.io.IpInterface
    • connectTls

      public swim.io.IpSocketRef connectTls(InetSocketAddress remoteAddress, swim.io.IpSocket socket, swim.io.IpSettings ipSettings)
      Specified by:
      connectTls in interface swim.io.IpInterface
    • trace

      public void trace(Object message)
      Specified by:
      trace in interface swim.util.Log
    • debug

      public void debug(Object message)
      Specified by:
      debug in interface swim.util.Log
    • info

      public void info(Object message)
      Specified by:
      info in interface swim.util.Log
    • warn

      public void warn(Object message)
      Specified by:
      warn in interface swim.util.Log
    • error

      public void error(Object message)
      Specified by:
      error in interface swim.util.Log
    • fail

      public void fail(Object message)
      Specified by:
      fail in interface swim.util.Log
    • close

      public void close()
    • willStart

      public void willStart()
      Specified by:
      willStart in interface Service
    • didStart

      public void didStart()
      Specified by:
      didStart in interface Service
    • willStop

      public void willStop()
      Specified by:
      willStop in interface Service
    • didStop

      public void didStop()
      Specified by:
      didStop in interface Service
    • willClose

      public void willClose()
      Specified by:
      willClose in interface Service
    • didClose

      public void didClose()
      Specified by:
      didClose in interface Service
    • didFail

      public void didFail(Throwable error)
      Specified by:
      didFail in interface Service