Slight tweak for BoundedPoolObject
parent
1ce58f38af
commit
3f750b8f13
|
@ -22,5 +22,5 @@ abstract class BoundedPoolObject<T>: PoolObject<T>() {
|
|||
/**
|
||||
* Called when an object is removed from the pool. Useful for logging how many objects are being removed
|
||||
*/
|
||||
open fun onRemoval(`object`: T) {}
|
||||
open fun onRemove(`object`: T) {}
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ internal class BoundedNonBlockingPool<T>(
|
|||
} else {
|
||||
currentSize.decrementAndGet()
|
||||
|
||||
poolObject.onRemoval(`object`)
|
||||
poolObject.onRemove(`object`)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue