net.sf.ehcache.distribution
public final class EventMessage extends Object implements Serializable
Version: $Id: EventMessage.java 191 2006-09-03 22:41:48Z gregluck $
UNKNOWN: SerializableHasSerializationMethods
Field Summary | |
---|---|
static int | PUT
A put or update event. |
static int | REMOVE
A remove or invalidate event. |
static int | REMOVE_ALL
A removeAll, which removes all elements from a cache |
Constructor Summary | |
---|---|
EventMessage(int event, Serializable key, Element element)
Full constructor.
|
Method Summary | |
---|---|
Element | getElement() |
int | getEvent()
Gets the event.
|
Serializable | getSerializableKey() |
boolean | isValid() |
Parameters: event key element
Returns: the element component of the message. null if a REMOVE event
Returns: the key component of the message. null if a PUT event
Returns: true if because of SoftReference GC this EventMessage is no longer valid