Interface ServiceConnectionManager<S>

All Known Subinterfaces:
DeclareResourceRequirementServiceConnectionManager
All Known Implementing Classes:
AbstractServiceConnectionManager, NoOpDeclareResourceRequirementServiceConnectionManager

public interface ServiceConnectionManager<S>
Base interface for managers of services that are explicitly connected to / disconnected from.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Close the service connection manager.
    void
    connect(S service)
    Connect to the given service.
    void
    Disconnect from the current service.
  • Method Details

    • connect

      void connect(S service)
      Connect to the given service.
      Parameters:
      service - service to connect to
    • disconnect

      void disconnect()
      Disconnect from the current service.
    • close

      void close()
      Close the service connection manager. A closed manager must not be used again.