public class LegacyEventMessage extends EventMessage
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.
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
LegacyEventMessage(int event,
Serializable key,
Element element)
Full constructor.
|
Modifier and Type | Method and Description |
---|---|
Element |
getElement() |
int |
getEvent()
Gets the event.
|
boolean |
isValid() |
getEhcache, getSerializableKey
public static final int PUT
public static final int REMOVE
public static final int REMOVE_ALL
public LegacyEventMessage(int event, Serializable key, Element element)
event
- key
- element
- Copyright 2001-2020, Terracotta, Inc.