- 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
.-
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.Gets a proxy to the associatedRouterPrx
.static String
Gets the type ID of the associated Slice interface.
-
Method Details
-
getRouter
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:
dispatch
in interfaceObject
- Parameters:
request
- the incoming request- Returns:
- the outgoing response
- Throws:
UserException
- if aUserException
is thrown, Ice will marshal it as the response payload.
-