net.metanotion.util
Interface Cacheable

All Superinterfaces:
java.io.Closeable

public interface Cacheable
extends java.io.Closeable


Method Summary
 void close()
          Called to indicate that this object is being ejected from the cache.
 long weight()
          Should return a meaningful weight for the object.
 

Method Detail

close

void close()
Called to indicate that this object is being ejected from the cache.

Specified by:
close in interface java.io.Closeable

weight

long weight()
Should return a meaningful weight for the object.