snaq.util
Interface Reusable

All Known Implementing Classes:
CacheConnection

public interface Reusable

Interface for an object that can be reused.

Author:
Giles Winstanley
See Also:
ObjectPool

Method Summary
 boolean isDirty()
          Determines if this object is "dirty" (i.e.
 void recycle()
          Cleans an object to put it in a state in which it can be reused.
 

Method Detail

recycle

void recycle()
             throws Exception
Cleans an object to put it in a state in which it can be reused.

Throws:
Exception - if unable to recycle the this object

isDirty

boolean isDirty()
Determines if this object is "dirty" (i.e. unable to be recycled).