org.apache.cocoon
Interface Modifiable


public interface Modifiable

This interface is implemented by those classes that change their behavior/results over time (non-ergodic).

Version:
$Id: Modifiable.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Method Summary
 boolean modifiedSince(long date)
          Queries the class to estimate its ergodic period termination.
 

Method Detail

modifiedSince

public boolean modifiedSince(long date)
Queries the class to estimate its ergodic period termination.
This method is called to ensure the validity of a cached product. It is the class responsibility to provide the fastest possible implementation of this method or, whether this is not possible and the costs of the change evaluation is comparable to the production costs, to return true directly with no further delay, thus reducing the evaluation overhead to a minimum.

Returns:
true if the class ergodic period is over and the class would behave differently if processed again, false if the resource is still ergodic so that it doesn't require reprocessing.


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.