net.sf.ehcache.distribution
Class EventMessage
java.lang.Object
net.sf.ehcache.distribution.EventMessage
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- LegacyEventMessage, RmiEventMessage
public class EventMessage
- extends Object
- implements Serializable
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.
- Version:
- $Id: EventMessage.java 5594 2012-05-07 16:04:31Z cdennis $
- Author:
- Greg Luck
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventMessage
public EventMessage(Ehcache cache,
Serializable key)
- Full constructor.
- Parameters:
cache
- key
-
getEhcache
public final Ehcache getEhcache()
- Gets the associated
Ehcache
.
- Returns:
- the associated cache
getSerializableKey
public final Serializable getSerializableKey()
- Returns:
- the key component of the message. null if a
#PUT
event
Copyright 2001-2014, Terracotta, Inc.