Interface AsyncRegistryObserver

All Superinterfaces:
Object

public interface AsyncRegistryObserver extends Object
Monitors changes to the state of the registries.

Remarks: The Slice compiler generated this skeleton interface from Slice interface ::IceGrid::RegistryObserver.

  • Method Details

    • registryInitAsync

      CompletionStage<Void> registryInitAsync(RegistryInfo[] registries, Current current)
      Provides the initial state of the registries to the observer.
      Parameters:
      registries - The current state of the registries.
      current - the Current object of the incoming request
      Returns:
      a completion stage that the servant will complete when the invocation completes
    • registryUpAsync

      CompletionStage<Void> registryUpAsync(RegistryInfo registryReplica, Current current)
      Notifies the observer that a registry replica came up.
      Parameters:
      registryReplica - The registry state.
      current - the Current object of the incoming request
      Returns:
      a completion stage that the servant will complete when the invocation completes
    • registryDownAsync

      CompletionStage<Void> registryDownAsync(String name, Current current)
      Notifies the observer that a registry replica went down.
      Parameters:
      name - The registry name.
      current - the Current object of the incoming request
      Returns:
      a completion stage that the servant will complete when the invocation completes
    • ice_staticId

      static String ice_staticId()
      Gets the type ID of the associated Slice interface.
      Returns:
      the string "::IceGrid::RegistryObserver"
    • dispatch

      default CompletionStage<OutgoingResponse> dispatch(IncomingRequest request) throws UserException
      Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.
      Specified by:
      dispatch in interface Object
      Parameters:
      request - the incoming request
      Returns:
      the outgoing response
      Throws:
      UserException - if a UserException is thrown, Ice will marshal it as the response payload.