Interface Session

All Superinterfaces:
Object
All Known Subinterfaces:
AdminSession, Session

public interface Session extends Object
Represents a session between a client application and the Glacier2 router. With Glacier2, the lifetime of a session is tied to the Ice connection between the client and the router: the session is destroyed when the connection is closed.
See Also:
  • Method Details

    • destroy

      void destroy(Current current)
      Destroys this session.
      Parameters:
      current - The Current object of the incoming request.
    • ice_staticId

      static String ice_staticId()
      Gets the type ID of the associated Slice interface.
      Returns:
      the string "::Glacier2::Session"
    • 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.