Interface PoolableObjectConsumer<T extends PoolableObject<X>,​X extends Exception>

  • Type Parameters:
    T - The type of object to operate on.
    X - The type of exception that operations on objects can throw.

    public interface PoolableObjectConsumer<T extends PoolableObject<X>,​X extends Exception>
    An operation that takes a single PoolableObject.
    Author:
    Rob Spoor
    • Method Detail

      • accept

        void accept​(T object)
             throws X extends Exception
        Performs this operation on the given argument.
        Parameters:
        object - The object to operate on.
        Throws:
        X - If an error occurs when performing this operation.
        X extends Exception