public class LibrarySessionPool extends Object
| Constructor and Description |
|---|
LibrarySessionPool(LibrarySessionProvider provider,
int maxSessionCount)
Constructs a LibrarySessionPool.
|
| Modifier and Type | Method and Description |
|---|---|
LibrarySession |
acquireSession()
Acquires a session from the session pool.
|
void |
activatePool()
Activates the session pool.
|
void |
deactivatePool()
De-activates the session pool, by disconnecting all sessions.
|
void |
releaseSession(LibrarySession session)
Releases a session back to the session pool.
|
void |
setMaximumSessionCount(int maxSessionCount)
Updates the maximum session count.
|
public LibrarySessionPool(LibrarySessionProvider provider, int maxSessionCount)
provider - the session providermaxSessionCount - the maximum number of sessions that can
be constructed by this poolpublic void setMaximumSessionCount(int maxSessionCount)
maxSessionCount - the maximum number of sessions that can
be constructed by this poolpublic void activatePool()
public void deactivatePool()
throws IfsException
IfsException - if the operation failspublic LibrarySession acquireSession() throws IfsException
IfsException - if the operation failspublic void releaseSession(LibrarySession session)
session - session to put back in the poolCopyright © 2025. All rights reserved.