Interface AsyncObjectObserver

All Superinterfaces:
Object

public interface AsyncObjectObserver extends Object
Monitors well-known objects that are added, updated or removed using AdminPrx.

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

  • Method Details

    • objectInitAsync

      CompletionStage<Void> objectInitAsync(ObjectInfo[] objects, Current current)
      Provides the initial list of well-known objects to the observer.
      Parameters:
      objects - The well-known objects registered using AdminPrx.
      current - the Current object of the incoming request
      Returns:
      a completion stage that the servant will complete when the invocation completes
    • objectAddedAsync

      CompletionStage<Void> objectAddedAsync(ObjectInfo info, Current current)
      Notifies the observer that a well-known object was added.
      Parameters:
      info - The details of the new object.
      current - the Current object of the incoming request
      Returns:
      a completion stage that the servant will complete when the invocation completes
    • objectUpdatedAsync

      CompletionStage<Void> objectUpdatedAsync(ObjectInfo info, Current current)
      Notifies the observer that a well-known object was updated.
      Parameters:
      info - The details of the updated object.
      current - the Current object of the incoming request
      Returns:
      a completion stage that the servant will complete when the invocation completes
    • objectRemovedAsync

      CompletionStage<Void> objectRemovedAsync(Identity id, Current current)
      Notifies the observer that a well-known object was removed.
      Parameters:
      id - The identity of the removed object.
      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::ObjectObserver"
    • 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.