com.ibm.websphere.asynchbeans.pool

Interface CustomObjectPool

  • All Superinterfaces:
    ObjectPool


    public interface CustomObjectPool
    extends ObjectPool
    Custom object pools must implement this interface. Don't synchronize the methods of your implementation. Your implementation is wrapped by an internal ObjectPool implementation that adds synchronization when it is created using the ObjectPoolManager.getPool method. When a fast pool is created then your implementation runs unsynchronized.

    Any custom implementation should behave like a default one in that it should automatically clear objects that implement java.util.Collection as well as handle the methods on objects that implement PoolableObject.

    PMI statistics are not tracked for custom object pools.

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void flushPool()
      This is called when memory is short and the idle object list should be trimmed to release memory for the system.
      void setProperties(java.util.Map props)
      This is called when the custom object pool is constructed.
    • Method Detail

      • setProperties

        void setProperties(java.util.Map props)
        This is called when the custom object pool is constructed. A map of the supplied parameters is supplied. These are the parameters supplied by the administrator who defined the custom pool.
        Parameters:
        props - The parameters.
      • flushPool

        void flushPool()
        This is called when memory is short and the idle object list should be trimmed to release memory for the system.
IBM WebSphere Application ServerTM
Release 8.5