org.apache.cocoon.caching.validity
Class NamedEvent
java.lang.Object
org.apache.cocoon.caching.validity.Event
org.apache.cocoon.caching.validity.NamedEvent
- All Implemented Interfaces:
- Serializable
public class NamedEvent
- extends Event
An External cache event that consists of just a name. Examples
(not necessarily useful) could include "Easter" or "Shutdown"
- Version:
- $Id: NamedEvent.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Geoff Howard (ghoward@apache.org)
- See Also:
- Serialized Form
Constructor Summary |
NamedEvent(String name)
Constructor takes a simple String as event name. |
Method Summary |
boolean |
equals(Event e)
Every NamedEvent where the name string is equal must
return true. |
int |
hashCode()
This hash code is the only way the system can locate
matching Events when a new event notification is received. |
String |
toString()
|
Methods inherited from class org.apache.cocoon.caching.validity.Event |
equals |
NamedEvent
public NamedEvent(String name)
- Constructor takes a simple String as event name.
- Parameters:
name
- name
equals
public boolean equals(Event e)
- Every NamedEvent where the name string is equal must
return true.
- Specified by:
equals
in class Event
- Parameters:
e
- Another Event to compare.
- Returns:
- true if
hashCode
public int hashCode()
- Description copied from class:
Event
- This hash code is the only way the system can locate
matching Events when a new event notification is received.
- Specified by:
hashCode
in class Event
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.