org.apache.cocoon.caching.validity
Class EventValidity

java.lang.Object
  extended by org.apache.cocoon.caching.validity.EventValidity
All Implemented Interfaces:
Serializable, SourceValidity

public class EventValidity
extends Object
implements SourceValidity

The SourceValidity object for cache invalidation based on external events.

Version:
$Id: EventValidity.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Geoff Howard (ghoward@apache.org)
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.excalibur.source.SourceValidity
INVALID, UNKNOWN, VALID
 
Constructor Summary
EventValidity(Event ev)
          Constructor requires any subclass of Event.
 
Method Summary
 boolean equals(Object o)
           
 Event getEvent()
          Returns the specific Event this validity is based on.
 int hashCode()
           
 int isValid()
          Basic implementation is always valid until event signals otherwise.
 int isValid(SourceValidity sv)
          Older style of isValid
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventValidity

public EventValidity(Event ev)
Constructor requires any subclass of Event.

Parameters:
ev -
Method Detail

getEvent

public Event getEvent()
Returns the specific Event this validity is based on.

Returns:
Event

isValid

public int isValid()
Basic implementation is always valid until event signals otherwise. May never need other behavior.

Specified by:
isValid in interface SourceValidity

isValid

public int isValid(SourceValidity sv)
Older style of isValid

Specified by:
isValid in interface SourceValidity

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


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