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

  • Type Parameters:
    T - The type of object to create.
    X - The type of exception that operations on created objects can throw. This is also the type of exception that can occur when instances are created.

    public interface PoolableObjectFactory<T extends PoolableObject<X>,​X extends Exception>
    A factory for PoolableObjects.
    Author:
    Rob Spoor
    • Method Detail

      • newObject

        T newObject()
             throws X extends Exception
        Creates a new PoolableObject.
        Returns:
        The created object.
        Throws:
        X - If an error occurs while creating the object.
        X extends Exception