Package com.zeroc.Ice

Interface BlobjectAsync

All Superinterfaces:
Object

public interface BlobjectAsync extends Object
Base class for asynchronous dynamic dispatch servants.

This class is provided for backward compatibility. You should consider deriving directly from Object and overriding the Object.dispatch(com.zeroc.Ice.IncomingRequest) method.

  • Method Details

    • ice_invokeAsync

      CompletionStage<Object.Ice_invokeResult> ice_invokeAsync(byte[] inEncaps, Current current) throws UserException
      Dispatches an incoming request.
      Parameters:
      inEncaps - an encapsulation containing the encoded in-parameters for the operation.
      current - the Current object of the incoming request
      Returns:
      A CompletionStage that eventually completes with an instance of Object.Ice_invokeResult. If the operation completed successfully, set its returnValue field to true and its outParams field to the encoded results. If the operation threw a user exception, you can either throw it directly or set the returnValue field to false and the outParams field to the encoded user exception.
      Throws:
      UserException - If a user exception is thrown, Ice will marshal it as the response payload.
    • dispatch

      default CompletionStage<OutgoingResponse> dispatch(IncomingRequest request) throws UserException
      Description copied from interface: Object
      Dispatches an incoming request and returns the corresponding outgoing response.
      Specified by:
      dispatch in interface Object
      Parameters:
      request - the incoming request
      Returns:
      a CompletionStage that will complete with the outgoing response
      Throws:
      UserException - If a UserException is thrown, Ice will marshal it as the response payload.