public abstract class AbstractPool<T> extends Object implements Pool<T>
Modifier | Constructor and Description |
---|---|
protected |
AbstractPool(StatelessObjectFactory<T> factory) |
Modifier and Type | Method and Description |
---|---|
protected T |
create() |
protected void |
destroy(T bean) |
protected void |
doRemove(T bean)
Remove the bean context and invoke any callbacks
and track the remove count
|
int |
getCreateCount() |
int |
getRemoveCount() |
protected void |
remove(T bean)
Deprecated.
|
abstract void |
setMaxSize(int maxSize) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
discard, get, getAvailableCount, getCurrentSize, getMaxSize, release, start, stop
protected AbstractPool(StatelessObjectFactory<T> factory)
public int getCreateCount()
getCreateCount
in interface Pool<T>
public int getRemoveCount()
getRemoveCount
in interface Pool<T>
public abstract void setMaxSize(int maxSize)
setMaxSize
in interface Pool<T>
protected T create()
@Deprecated protected void remove(T bean)
protected void destroy(T bean)
protected void doRemove(T bean)
bean
- Copyright © 2018 JBoss by Red Hat. All rights reserved.