Package com.zeroc.Ice

Interface RouterFinder

All Superinterfaces:
Object

public interface RouterFinder extends 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.
  • Method Details

    • getRouter

      RouterPrx getRouter(Current current)
      Gets a proxy to the associated RouterPrx. 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

      static String ice_staticId()
      Gets the type ID of the associated Slice interface.
      Returns:
      the string "::Ice::RouterFinder"
    • dispatch

      default CompletionStage<OutgoingResponse> dispatch(IncomingRequest request) throws UserException
      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 interface Object
      Parameters:
      request - the incoming request
      Returns:
      the outgoing response
      Throws:
      UserException - if a UserException is thrown, Ice will marshal it as the response payload.