| java.lang.Object net.sf.ehcache.distribution.EventMessage
All known Subclasses: net.sf.ehcache.distribution.jgroups.JGroupEventMessage,
EventMessage | public class EventMessage implements Serializable(Code) | | An Event Message, in respect of a particular cache.
The message is Serializable, so that it can be sent across the network.
The value of an Element is referenced with a SoftReference, so that a
value will fail to be delivered in preference to an OutOfMemory error.
author: Greg Luck version: $Id: EventMessage.java 519 2007-07-27 07:11:45Z gregluck $ |
Field Summary | |
final public static int | PUT A put or update event. | final public static int | REMOVE A remove or invalidate event. | final public static int | REMOVE_ALL |
PUT | final public static int PUT(Code) | | A put or update event.
|
REMOVE | final public static int REMOVE(Code) | | A remove or invalidate event.
|
REMOVE_ALL | final public static int REMOVE_ALL(Code) | | A removeAll, which removes all elements from a cache
|
EventMessage | public EventMessage(int event, Serializable key, Element element)(Code) | | Full constructor.
Parameters: event - Parameters: key - Parameters: element - |
isValid | public boolean isValid()(Code) | | true if because of SoftReference GC this EventMessage is no longer valid |
|
|