001    package railo.runtime.util.pool;
002    
003    /**
004     * Box for a Object for the Pool
005     */
006    public abstract class PoolHandler {
007            
008            long time;
009            
010            /**
011             * constructor of the class
012             */
013            public PoolHandler() {
014                    time=System.currentTimeMillis();
015            }
016            
017            /**
018             * clear the Handler
019             */
020            public abstract void clear();
021    
022            /**
023             * @return returns the Time
024             */
025            public final long getTime() {
026                    return time;
027            }
028            /**
029             * Sets the Time
030             */
031            public final void setTime() {
032                    time=System.currentTimeMillis();
033            }
034    
035            /**
036             * sets the value
037             * @param o 
038             */
039            public abstract void setData(Object o);
040    
041            /**
042             * returns the Value
043             * @return
044             */
045            public abstract Object getData();
046            
047            
048    }