Add package private accessor in Evictor to its owner pool.
@@ -128,6 +128,9 @@ public abstract class BaseGenericObjectPool<T> extends BaseObject {
scheduledFuture.cancel(false);
}
+ BaseGenericObjectPool<T> owner() {
+ return BaseGenericObjectPool.this;
+ }
/**
* Run pool maintenance. Evict objects qualifying for eviction and then
@@ -177,7 +180,6 @@ public abstract class BaseGenericObjectPool<T> extends BaseObject {
}
}
-
/**
* Sets the scheduled future.
*
