public class SessionsManager extends Object
| Constructor and Description |
|---|
SessionsManager(SessionsManagerConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close: release all sessions and close the connection pool
|
SessionWrapper |
getSessionWrapper()
getSessionWrapper: return a SessionWrapper from sessionManager,
the SessionWrapper couldn't use by multi-thread
|
void |
returnSessionWrapper(SessionWrapper session)
returnSessionWrapper: return the SessionWrapper to the sessionManger,
the old SessionWrapper couldn't use again.
|
public SessionsManager(SessionsManagerConfig config)
public SessionWrapper getSessionWrapper() throws RuntimeException, ClientServerIncompatibleException
RuntimeException - the exception when get SessionWrapperClientServerIncompatibleExceptionpublic void returnSessionWrapper(SessionWrapper session)
session - The SessionWrapperpublic void close()
Copyright © 2022. All rights reserved.