ProxiedObjectPool.
| Modifier and Type | Field and Description |
|---|---|
| private volatile T | |
| private final UsageTracking |
| Access | Constructor and Description |
|---|---|
| pack-priv | BaseProxyHandler(final T
The object to wrap pooledObject, final UsageTracking<T> The instance, if any (usually the object pool) to
be provided with usage tracking information for this
wrapped object usageTracking)Constructs a new wrapper for the given pooled object. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv T | |
| pack-priv Object | |
| pack-priv T | |
| public String | |
| pack-priv void | validateProxiedObject()
Check that the proxy is still valid (i.e. that |
| pooledObject | back to summary |
|---|---|
| private volatile T pooledObject | |
| usageTracking | back to summary |
|---|---|
| private final UsageTracking<T> usageTracking | |
| BaseProxyHandler | back to summary |
|---|---|
| pack-priv BaseProxyHandler(final T pooledObject, final UsageTracking<T> usageTracking) Constructs a new wrapper for the given pooled object.
| |
| disableProxy | back to summary |
|---|---|
| pack-priv T disableProxy() Disable the proxy wrapper. Called when the object has been returned to
the pool. Further use of the wrapper should result in an
| |
| doInvoke | back to summary |
|---|---|
| pack-priv Object doInvoke(final Method method, final Object[] args) throws Throwable Invoke the given method on the wrapped object. | |
| getPooledObject | back to summary |
|---|---|
| pack-priv T getPooledObject() Gets the wrapped, pooled object.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| validateProxiedObject | back to summary |
|---|---|
| pack-priv void validateProxiedObject() Check that the proxy is still valid (i.e. that
| |