ch.bind.philib.pool.manager
public interface ObjectManager<T>
T create()
void release(T value)
boolean prepareForRecycle(T value)
value - The object which must be prepared for reuse.true if this object can be reused, false otherwise (for example if the size of the
offered buffer is too small). After returning false destroy(T) will be called.boolean canReuse(T value)
value - -true if this pooled object can be reused, false otherwise. Example: The pooled object is
a database connection which might not be reusable because the connection was closed while being in the
pool.Copyright © 2013. All Rights Reserved.