Interface ClientServiceRegistryAgent


public interface ClientServiceRegistryAgent
Definition of an agent offering ability to register client local service instances. Service instances registered via registerClientService(Class, Object) will be reachable via ServicesBroker.getService(Class) as long as the connection of the belonging FirstSpirit will be alive and if they won't be explicitly unregistered
Since:
4.2.426
  • Field Details

  • Method Details

    • registerClientService

      <T> void registerClientService(Class<T> clientServiceType, T clientService)
      Register a client service to be reachable via ServicesBroker.getService(Class)
      Parameters:
      clientServiceType - the class specifying the type of the service
      clientService - the instance of the client service to be registered
      Since:
      4.2.426
    • unregisterClientService

      <T> void unregisterClientService(T clientService)
      Unregister the given client service.
      Parameters:
      clientService - the client service to unregister
      Since:
      4.2.429