juju.reattore.io
Interface Cache

All Known Implementing Classes:
CachingInterceptor

public interface Cache

A source that can be cached and that manages it's expiration and re-use.


Method Summary
 boolean onClose(CachableSource so)
          Called by a registered source when the source is about to be closed.
 

Method Detail

onClose

public boolean onClose(CachableSource so)
Called by a registered source when the source is about to be closed. The cache can cancel the close.

Parameters:
so - The calling source.
Returns:
true if the close should proceed, false if the source has been pulled into the cache.


Copyright © 2002-2003 Michael Hope. All Rights Reserved.