Package com.zeroc.Ice
Class DispatchInterceptor
java.lang.Object
com.zeroc.Ice.DispatchInterceptor
- All Implemented Interfaces:
Object
Base class that allows a server to intercept incoming requests.
The application must derive a concrete class from
DispatchInterceptor
that implements the dispatch(com.zeroc.Ice.Request)
operation. An instance of this derived
class can be registered with an object adapter like any other servant.
A dispatch interceptor is useful particularly to automatically retry requests that have failed due to a recoverable error condition.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CompletionStage<OutputStream>
Called by the Ice run time to dispatch an incoming request.
-
Constructor Details
-
DispatchInterceptor
public DispatchInterceptor()
-
-
Method Details
-
dispatch
Called by the Ice run time to dispatch an incoming request. The implementation ofdispatch
must dispatch the request to the actual servant.- Parameters:
request
- The details of the incoming request.- Returns:
- A completion stage if dispatched asynchronously, null otherwise.
- Throws:
UserException
- A user exception that propagates out of this method will be marshaled as the result.- See Also:
-