public class LegacyEventMessage extends EventMessage
Modifier and Type | Field and Description |
---|---|
private java.lang.ref.SoftReference |
elementSoftReference
The element component.
|
private int |
event
The event component.
|
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
|
private static long |
serialVersionUID |
private boolean |
wasElementNotNull
Used to check if the value has been GCed
|
Constructor and Description |
---|
LegacyEventMessage(int event,
java.io.Serializable key,
Element element)
Full constructor.
|
Modifier and Type | Method and Description |
---|---|
Element |
getElement() |
int |
getEvent()
Gets the event.
|
boolean |
isValid() |
private void |
readObject(java.io.ObjectInputStream in) |
private void |
writeObject(java.io.ObjectOutputStream out) |
getEhcache, getSerializableKey
public static final int PUT
public static final int REMOVE
public static final int REMOVE_ALL
private static final long serialVersionUID
private final int event
private transient java.lang.ref.SoftReference elementSoftReference
private final boolean wasElementNotNull
public LegacyEventMessage(int event, java.io.Serializable key, Element element)
event
- key
- element
- public final Element getElement()
REMOVE
eventpublic boolean isValid()
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException
java.io.IOException
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException