Interface AsyncAdapterObserver

All Superinterfaces:
Object

public interface AsyncAdapterObserver extends Object
Monitors dynamically-registered object adapters.

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

  • Method Details

    • adapterInitAsync

      CompletionStage<Void> adapterInitAsync(AdapterInfo[] adpts, Current current)
      Provides the initial list of dynamically registered adapters to the observer.
      Parameters:
      adpts - The adapters that were dynamically registered with the registry.
      current - the Current object of the incoming request
      Returns:
      a completion stage that the servant will complete when the invocation completes
    • adapterAddedAsync

      CompletionStage<Void> adapterAddedAsync(AdapterInfo info, Current current)
      Notifies the observer that a dynamically-registered adapter was added.
      Parameters:
      info - The details of the new adapter.
      current - the Current object of the incoming request
      Returns:
      a completion stage that the servant will complete when the invocation completes
    • adapterUpdatedAsync

      CompletionStage<Void> adapterUpdatedAsync(AdapterInfo info, Current current)
      Parameters:
      info - The details of the updated adapter.
      current - the Current object of the incoming request
      Returns:
      a completion stage that the servant will complete when the invocation completes
    • adapterRemovedAsync

      CompletionStage<Void> adapterRemovedAsync(String id, Current current)
      Notifies the observer that a dynamically-registered adapter was removed.
      Parameters:
      id - The ID of the removed adapter.
      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::AdapterObserver"
    • 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.