Interface JPPoolSynchronousUsableType<K,T extends U,U,C>

Type Parameters:
K - The type of keys
T - The type of pooled values
U - The type of user-visible pooled values
C - The type of context values
All Known Subinterfaces:
JPPoolSynchronousType<K,T,U,C>
All Known Implementing Classes:
JPPoolSynchronous

public interface JPPoolSynchronousUsableType<K,T extends U,U,C>
The type of usable synchronous pools that yield values of type T for keys of type K, using context values of type C to create new values if necessary.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(C context, K key)
    Retrieve an object from the pool, creating it if necessary.
    boolean
     
    void
    returnValue(C context, U value)
    Return an object to the pool for re-use by later calls to get(Object, Object).
    long
     
    void
    trim(C context)
    Trim free objects within the pool to reduce the pool size.
  • Method Details