- All Superinterfaces:
Object
- All Known Subinterfaces:
AsyncAdminSession,AsyncSession
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.
Remarks:
The Slice compiler generated this skeleton interface from Slice interface ::Glacier2::Session.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult -
Method Summary
Modifier and TypeMethodDescriptiondestroyAsync(Current current) Destroys this session.default 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.static StringGets the type ID of the associated Slice interface.
-
Method Details
-
destroyAsync
Destroys this session.- Parameters:
current- the Current object of the incoming request- Returns:
- a completion stage that the servant will complete when the invocation completes
-
ice_staticId
Gets the type ID of the associated Slice interface.- Returns:
- the string "::Glacier2::Session"
-
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.
-