- All Superinterfaces:
Object
Provides access to a
RouterPrx object via a fixed identity.
A RouterFinder is always registered with identity Ice/RouterFinder. This allows clients to obtain the
associated Router proxy with just the endpoint information of the object. For example, you can use the
RouterFinder proxy Ice/RouterFinder:tcp -h somehost -p 4061 to get the Router proxy
MyGlacier2/Router:tcp -h somehost -p 4061.
Remarks:
The Slice compiler generated this skeleton interface from Slice interface ::Ice::RouterFinder.
-
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 to one of the methods of this generated interface, based on the operation name carried by the request.getRouterAsync(Current current) Gets a proxy to the associatedRouterPrx.static StringGets the type ID of the associated Slice interface.
-
Method Details
-
getRouterAsync
Gets a proxy to the associatedRouterPrx. The proxy might point to several replicas.- Parameters:
current- the Current object of the incoming request- Returns:
- The router proxy. This proxy is never null.
-
ice_staticId
Gets the type ID of the associated Slice interface.- Returns:
- the string "::Ice::RouterFinder"
-
dispatch
Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.- Specified by:
dispatchin interfaceObject- Parameters:
request- the incoming request- Returns:
- the outgoing response
- Throws:
UserException- if aUserExceptionis thrown, Ice will marshal it as the response payload.
-