| 
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.distribution.EventMessage
net.sf.ehcache.distribution.LegacyEventMessage
public class LegacyEventMessage
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.
| 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 | |
|---|---|
LegacyEventMessage(int event,
                   Serializable key,
                   Element element)
Full constructor.  | 
|
| Method Summary | |
|---|---|
 Element | 
getElement()
 | 
 int | 
getEvent()
Gets the event.  | 
 boolean | 
isValid()
 | 
| Methods inherited from class net.sf.ehcache.distribution.EventMessage | 
|---|
getEhcache, getSerializableKey | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final int PUT
public static final int REMOVE
public static final int REMOVE_ALL
| Constructor Detail | 
|---|
public LegacyEventMessage(int event,
                          Serializable key,
                          Element element)
event - key - element - | Method Detail | 
|---|
public final int getEvent()
PUT or REMOVEpublic final Element getElement()
REMOVE eventpublic boolean isValid()
  | 
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||