Package net.sf.ehcache.distribution
Class RmiEventMessage
- java.lang.Object
-
- net.sf.ehcache.distribution.EventMessage
-
- net.sf.ehcache.distribution.RmiEventMessage
-
- All Implemented Interfaces:
java.io.Serializable
public final class RmiEventMessage extends EventMessage
- Author:
- cdennis
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRmiEventMessage.RmiEventTypeEnumeration of event types.
-
Constructor Summary
Constructors Constructor Description RmiEventMessage(Ehcache cache, RmiEventMessage.RmiEventType type, java.io.Serializable key, Element element)Full constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementgetElement()RmiEventMessage.RmiEventTypegetType()Gets the event.-
Methods inherited from class net.sf.ehcache.distribution.EventMessage
getEhcache, getSerializableKey
-
-
-
-
Constructor Detail
-
RmiEventMessage
public RmiEventMessage(Ehcache cache, RmiEventMessage.RmiEventType type, java.io.Serializable key, Element element)
Full constructor.- Parameters:
cache-type-key-element-
-
-
Method Detail
-
getType
public final RmiEventMessage.RmiEventType getType()
Gets the event.- Returns:
- either PUT or REMOVE
-
getElement
public final Element getElement()
- Returns:
- the element component of the message. null if a REMOVE event
-
-