java.lang.Object
org.identityconnectors.framework.impl.api.local.ObjectPool<T>

public class ObjectPool<T> extends Object
  • Constructor Details Link icon

  • Method Details Link icon

    • isShutdown Link icon

      public boolean isShutdown()
      Get the state of the pool.
      Returns:
      true if the shutdown() method was called before.
    • isDisposing Link icon

      public boolean isDisposing()
    • getPoolName Link icon

      public String getPoolName()
    • setPoolName Link icon

      public void setPoolName(String poolName)
    • borrowObject Link icon

      public ObjectPoolEntry<T> borrowObject()
      Borrow an object from the pool.
      Returns:
      An object
    • disposeAllObjects Link icon

      public void disposeAllObjects()
      Disposes all objects in the pool.

      Existing active objects will remain alive and be allowed to shutdown gracefully. Unlike shutdown, the pool will be able to work on and create new objects.

    • shutdown Link icon

      public void shutdown()
      Closes any idle objects in the pool.

      Existing active objects will remain alive and be allowed to shutdown gracefully, but no more objects will be allocated.

    • getStatistics Link icon

      public ObjectPool.Statistics getStatistics()
      Gets a snapshot of the pool's stats at a point in time.
      Returns:
      The statistics
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object