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 |
|---|---|
| private transient SoftReference | elementSoftReference
The element component. |
| private final int | event
The event component. |
| public static final int | PUT
A put or update event. |
| public static final int | REMOVE
A remove or invalidate event. |
| public static final int | REMOVE_ALL
A removeAll, which removes all elements from a cache |
| private static final long | |
| private final boolean | wasElementNotNull
Used to check if the value has been GCed |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final Element | |
| public final int | |
| public boolean | |
| private void | |
| private void |
| elementSoftReference | back to summary |
|---|---|
| private transient SoftReference<T> elementSoftReference The element component. This is held by a SoftReference, so as to prevent out of memory errors. | |
| event | back to summary |
|---|---|
| private final int event The event component. | |
| PUT | back to summary |
|---|---|
| public static final int PUT A put or update event. | |
| REMOVE | back to summary |
|---|---|
| public static final int REMOVE A remove or invalidate event. | |
| REMOVE_ALL | back to summary |
|---|---|
| public static final int REMOVE_ALL A removeAll, which removes all elements from a cache | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides net. | |
| wasElementNotNull | back to summary |
|---|---|
| private final boolean wasElementNotNull Used to check if the value has been GCed | |
| LegacyEventMessage | back to summary |
|---|---|
| public LegacyEventMessage(int event, Serializable key, Element element) Full constructor. | |
| getElement | back to summary |
|---|---|
| public final Element getElement() | |
| getEvent | back to summary |
|---|---|
| public final int getEvent() Gets the event. | |
| isValid | back to summary |
|---|---|
public boolean isValid()
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException | |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream out) throws IOException | |