Class AbstractPool<T>

java.lang.Object
org.jboss.as.ejb3.pool.AbstractPool<T>
All Implemented Interfaces:
Pool<T>
Direct Known Subclasses:
StrictMaxPool

public abstract class AbstractPool<T> extends Object implements Pool<T>
The base of all pool implementations.
Version:
$Revision$
Author:
Bill Burke, Carlo de Wolf
  • Constructor Details

  • Method Details

    • getCreateCount

      public int getCreateCount()
      Specified by:
      getCreateCount in interface Pool<T>
    • getRemoveCount

      public int getRemoveCount()
      Specified by:
      getRemoveCount in interface Pool<T>
    • setMaxSize

      public abstract void setMaxSize(int maxSize)
      Specified by:
      setMaxSize in interface Pool<T>
    • create

      protected T create()
    • remove

      @Deprecated protected void remove(T bean)
      Deprecated.
    • destroy

      protected void destroy(T bean)
    • doRemove

      protected void doRemove(T bean)
      Remove the bean context and invoke any callbacks and track the remove count
      Parameters:
      bean -