FileDocCategorySizeDatePackage
Pool.javaAPI DocJBoss 4.2.12285Fri Jul 13 20:53:58 BST 2007org.jboss.ejb3

Pool

public interface Pool
Minimally a pool acts as a factory for a bean. It will handle callbacks to ejbCreate and ejbRemove as well.
author
Bill Burke
version
$Revision: 61280 $

Fields Summary
Constructors Summary
Methods Summary
public voiddestroy()
Destroy the pool.

public voiddiscard(BeanContext obj)
Discard the bean. Called in different context as remove. If there is a system exception this is called.

param
obj

public BeanContextget()
Creates if no object is available in pool. ejbCreate will be called if created

public BeanContextget(java.lang.Class[] initTypes, java.lang.Object[] initValues)

public intgetAvailableCount()

public intgetCreateCount()

public intgetCurrentSize()

public intgetMaxSize()

public intgetRemoveCount()

public voidinitialize(Container container, java.lang.Class contextClass, java.lang.Class beanClass, int maxSize, long timeout)

public voidrelease(BeanContext obj)
Put bean back in pool

public voidremove(BeanContext obj)
Destroy bean. ejbRemove callback is executed

public voidsetInjectors(org.jboss.injection.Injector[] injectors)

public voidsetMaxSize(int maxSize)