01: package snaq.util;
02:
03: /**
04: * Interface for an object that can be reused.
05: * @see snaq.util.ObjectPool
06: * @author Giles Winstanley
07: */
08: public interface Reusable {
09: /**
10: * Cleans an object to put it in a state in which it can be reused.
11: * @throws Exception if unable to recycle the this object
12: */
13: public void recycle() throws Exception;
14: }
|