Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## oracle.ifs.common
Class LibrarySessionPool

    java.lang.Object
      oracle.ifs.common.LibrarySessionPool

    public class LibrarySessionPool

extends java.lang.Object

A LibrarySessionPool pools system-enabled LibrarySessions for use by concurrently executing threads.

Constructor Summary
`LibrarySessionPool(LibrarySessionProvider provider, int maxSessionCount)` Constructs a LibrarySessionPool.

Method Summary
`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.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### LibrarySessionPool

    public LibrarySessionPool(LibrarySessionProvider provider,
                              int maxSessionCount)

  Constructs a LibrarySessionPool.

  Parameters:
    `provider` - the session provider
    `maxSessionCount` - the maximum number of sessions that can be constructed by this pool

Method Detail

### setMaximumSessionCount

    public void setMaximumSessionCount(int maxSessionCount)

  Description copied from class: `LibrarySessionPool`
  Updates the maximum session count.

  Parameters:
    `maxSessionCount` - the maximum number of sessions that can be constructed by this pool

### activatePool

    public void activatePool()

  Description copied from class: `LibrarySessionPool`
  Activates the session pool.

### deactivatePool

    public void deactivatePool()
                        throws IfsException

  Description copied from class: `LibrarySessionPool`
  De-activates the session pool, by disconnecting all sessions.

  Throws:
    `IfsException` - if the operation fails

### acquireSession

    public LibrarySession acquireSession()
                                  throws IfsException

  Description copied from class: `LibrarySessionPool`
  Acquires a session from the session pool.

  Returns:
    a session
  Throws:
    `IfsException` - if the operation fails

### releaseSession

    public void releaseSession(LibrarySession session)

  Description copied from class: `LibrarySessionPool`
  Releases a session back to the session pool.

  Parameters:
    `session` - session to put back in the pool

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD