All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.uni_hildesheim.sse.monitoring.runtime.boot.Poolable Maven / Gradle / Ivy

The newest version!
package de.uni_hildesheim.sse.monitoring.runtime.boot;


/**
 * Defines a poolable instance, i.e. an instance that must be obtained from 
 * and returned to an {@link ObjectPool}. 
 * 
 * @param  the type of the element itself (used for factory-based cration)
 * @author Holger Eichelberger
 * @since 1.00
 * @version 1.00
 */
public interface Poolable  {
    
    /**
     * Clears this instance before returning it to the pool.
     * 
     * @since 1.00
     */
    public void clear();

    /**
     * Creates a further instance of this instances (intended as factory method
     * to be executed on a prototypical instance).
     * 
     * @return the created instance
     * 
     * @since 1.00
     */
    public T create();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy