Interface Service<S>

All Known Subinterfaces:
ClientService, HostedService
All Known Implementing Classes:
AbstractClientService, AbstractHostedConnectionService, AbstractHostedService, AbstractService, ClientSerializerRegistrationsService, RmiClientService, RmiHostedService, RpcClientService, RpcHostedService, ServerSerializerRegistrationsService

public interface Service<S>
The base interface for managed services.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    initialize(S serviceManager)
    Called when the service is first attached to the service manager.
    void
    Called when the service manager is started or if the service is added to an already started service manager.
    void
    Called when the service manager is shutting down.
    void
    terminate(S serviceManager)
    The service manager is fully shutting down.
  • Method Details

    • initialize

      void initialize(S serviceManager)
      Called when the service is first attached to the service manager.
    • start

      void start()
      Called when the service manager is started or if the service is added to an already started service manager.
    • stop

      void stop()
      Called when the service manager is shutting down. All services are stopped and any service manager resources are closed before the services are terminated.
    • terminate

      void terminate(S serviceManager)
      The service manager is fully shutting down. All services have been stopped and related connections closed.