|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.distribution.EventMessage
public class 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.
| Nested Class Summary | |
|---|---|
static class |
EventMessage.EventType
Enumeration of event types. |
| Constructor Summary | |
|---|---|
EventMessage(Ehcache cache,
EventMessage.EventType type,
Serializable key,
Element element)
Full constructor. |
|
| Method Summary | |
|---|---|
Ehcache |
getEhcache()
Gets the associated Ehcache. |
Element |
getElement()
|
Serializable |
getSerializableKey()
|
EventMessage.EventType |
getType()
Gets the event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventMessage(Ehcache cache,
EventMessage.EventType type,
Serializable key,
Element element)
cache - type - key - element - | Method Detail |
|---|
public final Ehcache getEhcache()
Ehcache.
public final EventMessage.EventType getType()
#PUT or #REMOVEpublic final Element getElement()
#REMOVE eventpublic final Serializable getSerializableKey()
#PUT event
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||