- All Superinterfaces:
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult -
Method Summary
Modifier and TypeMethodDescriptiondefault CompletionStage<OutgoingResponse>dispatch(IncomingRequest request) Dispatches an incoming request and returns the corresponding outgoing response.ice_invokeAsync(byte[] inEncaps, Current current) Dispatches an incoming request.
-
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 itsreturnValuefield totrueand itsoutParamsfield to the encoded results. If the operation threw a user exception, you can either throw it directly or set thereturnValuefield tofalseand theoutParamsfield to the encoded user exception. - Throws:
UserException- If a user exception is thrown, Ice will marshal it as the response payload.
-
dispatch
Description copied from interface:ObjectDispatches an incoming request and returns the corresponding outgoing response.- Specified by:
dispatchin interfaceObject- Parameters:
request- the incoming request- Returns:
- a
CompletionStagethat will complete with the outgoing response - Throws:
UserException- If aUserExceptionis thrown, Ice will marshal it as the response payload.
-