Interface BeanPool.Handle<T>

Type Parameters:
T - The type of the object being referenced.
All Superinterfaces:
AutoCloseable, Supplier<T>
Enclosing class:
BeanPool<T>

public static interface BeanPool.Handle<T> extends Supplier<T>, AutoCloseable
A handle to a pooled object. Call Supplier.get() to obtain the wrapped reference, and then pass this handle to BeanPool.checkIn(Handle) to put it back. Alternatively you can just close this object to check it back in.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from interface java.util.function.Supplier

    get