public interface SessionManager
Session
.Modifier and Type | Method and Description |
---|---|
void |
closeSession(SessionHandle sessionHandle)
Close the session with the specified identifier and releases the resources used by the
session.
|
static SessionManager |
create(DefaultContext defaultContext)
Create the
SessionManager with the default configuration. |
Session |
getSession(SessionHandle sessionHandle)
Get the
Session with the identifier. |
Session |
openSession(SessionEnvironment environment)
Register a new
Session . |
void |
start()
Start the
SessionManager and do the required initialization. |
void |
stop()
Destroy the
SessionManager and releases used resources. |
static SessionManager create(DefaultContext defaultContext)
SessionManager
with the default configuration.void start()
SessionManager
and do the required initialization.void stop()
SessionManager
and releases used resources.Session getSession(SessionHandle sessionHandle) throws SqlGatewayException
Session
with the identifier.sessionHandle
- identifier of the session.SqlGatewayException
Session openSession(SessionEnvironment environment) throws SqlGatewayException
Session
.environment
- the initialization environment.SqlGatewayException
void closeSession(SessionHandle sessionHandle) throws SqlGatewayException
sessionHandle
- the identifier of the session.SqlGatewayException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.