Top Description Fields Constructors Methods
net.sf.ehcache.distribution

public Class EventMessage

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Known Direct Subclasses
net.sf.ehcache.distribution.LegacyEventMessage, net.sf.ehcache.distribution.RmiEventMessage
Imports
java.io.Serializable, net.sf.ehcache.Ehcache

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.

Author
Greg Luck
Version
$Id: EventMessage.java 10789 2018-04-26 02:08:13Z adahanne $

Field Summary

Modifier and TypeField and Description
private final transient Ehcache
cache

The associated cache.

private final Serializable
key

The key component.

private static final long

Constructor Summary

AccessConstructor and Description
public
EventMessage(Ehcache cache, Serializable key)

Full constructor.

Method Summary

Modifier and TypeMethod and Description
public final Ehcache

Returns:

the associated cache
getEhcache
()

Gets the associated Ehcache.

public final Serializable

Returns:

the key component of the message. null if a PUT event
getSerializableKey
()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cacheback to summary
private final transient Ehcache cache

The associated cache.

keyback to summary
private final Serializable key

The key component.

serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

EventMessageback to summary
public EventMessage(Ehcache cache, Serializable key)

Full constructor.

Method Detail

getEhcacheback to summary
public final Ehcache getEhcache()

Gets the associated Ehcache.

Returns:Ehcache

the associated cache

getSerializableKeyback to summary
public final Serializable getSerializableKey()
Returns:Serializable

the key component of the message. null if a PUT event