org.apache.cocoon.caching.validity
Class NameValueEvent

java.lang.Object
  extended by org.apache.cocoon.caching.validity.Event
      extended by org.apache.cocoon.caching.validity.NameValueEvent
All Implemented Interfaces:
Serializable

public class NameValueEvent
extends Event

An external uncache event that consists of a name/value pair. An example might be "table_name", "primary_key"

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

Constructor Summary
NameValueEvent(String name, String value)
          Constructor requires two Strings - the name/value pair which defines this Event.
 
Method Summary
 boolean equals(Event e)
          Must return true when both name and value are equivalent Strings.
 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NameValueEvent

public NameValueEvent(String name,
                      String value)
Constructor requires two Strings - the name/value pair which defines this Event.

Parameters:
name -
value -
Method Detail

equals

public boolean equals(Event e)
Must return true when both name and value are equivalent Strings.

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.