Package net.sf.ehcache.distribution
Class LegacyEventMessage
- java.lang.Object
-
- net.sf.ehcache.distribution.EventMessage
-
- net.sf.ehcache.distribution.LegacyEventMessage
-
- All Implemented Interfaces:
java.io.Serializable
public class LegacyEventMessage extends EventMessage
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.
- Version:
- $Id: EventMessage.java 2154 2010-04-06 02:45:52Z cdennis $
- Author:
- Greg Luck
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intPUTA put or update event.static intREMOVEA remove or invalidate event.static intREMOVE_ALLA removeAll, which removes all elements from a cache
-
Constructor Summary
Constructors Constructor Description LegacyEventMessage(int event, java.io.Serializable key, Element element)Full constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementgetElement()intgetEvent()Gets the event.booleanisValid()-
Methods inherited from class net.sf.ehcache.distribution.EventMessage
getEhcache, getSerializableKey
-
-
-
-
Field Detail
-
PUT
public static final int PUT
A put or update event.- See Also:
- Constant Field Values
-
REMOVE
public static final int REMOVE
A remove or invalidate event.- See Also:
- Constant Field Values
-
REMOVE_ALL
public static final int REMOVE_ALL
A removeAll, which removes all elements from a cache- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LegacyEventMessage
public LegacyEventMessage(int event, java.io.Serializable key, Element element)Full constructor.- Parameters:
event-key-element-
-
-