public class ObjectPoolImpl extends java.lang.Object implements ObjectPool, ResetEventListener, ReportStatusListener
ObjectPool interface.
This ia a minimal implementation, one that has no concept of automatically removing unused pooled objects. Eventually, it will also register for notifications about general cache cleaning.
| Constructor and Description |
|---|
ObjectPoolImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(java.lang.Object key)
Returns an object from the pool, previously stored with the given key.
|
void |
reportStatus(ReportStatusEvent event) |
void |
resetEventDidOccur() |
void |
setServiceId(java.lang.String serviceId) |
void |
store(java.lang.Object key,
java.lang.Object value)
Stores an object into the pool for later retrieval with the provided key.
|
public ObjectPoolImpl()
public java.lang.Object get(java.lang.Object key)
ObjectPoolget in interface ObjectPoolpublic void store(java.lang.Object key, java.lang.Object value)
ObjectPoolstore in interface ObjectPoolpublic void resetEventDidOccur()
resetEventDidOccur in interface ResetEventListenerpublic void reportStatus(ReportStatusEvent event)
reportStatus in interface ReportStatusListenerpublic void setServiceId(java.lang.String serviceId)