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)
ObjectPool
get
in interface ObjectPool
public void store(java.lang.Object key, java.lang.Object value)
ObjectPool
store
in interface ObjectPool
public void resetEventDidOccur()
resetEventDidOccur
in interface ResetEventListener
public void reportStatus(ReportStatusEvent event)
reportStatus
in interface ReportStatusListener
public void setServiceId(java.lang.String serviceId)