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

public final Class RmiEventMessage

extends EventMessage
Class Inheritance
Imports
java.io.Serializable, net.sf.ehcache.Ehcache, .Element

Author
cdennis

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
RmiEventMessage.RmiEventType

Enumeration of event types.

Field Summary

Modifier and TypeField and Description
private final Element
element

The element component.

private final RmiEventMessage.RmiEventType
type

The event component.

Constructor Summary

AccessConstructor and Description
public
RmiEventMessage(Ehcache cache, RmiEventMessage.RmiEventType type, Serializable key, Element element)

Full constructor.

Method Summary

Modifier and TypeMethod and Description
public final Element

Returns:

the element component of the message. null if a REMOVE event
getElement
()

public final RmiEventMessage.RmiEventType

Returns:

either PUT or REMOVE
getType
()

Gets the event.

Inherited from net.sf.ehcache.distribution.EventMessage:
getEhcachegetSerializableKey

Field Detail

elementback to summary
private final Element element

The element component.

typeback to summary
private final RmiEventMessage.RmiEventType type

The event component.

Constructor Detail

RmiEventMessageback to summary
public RmiEventMessage(Ehcache cache, RmiEventMessage.RmiEventType type, Serializable key, Element element)

Full constructor.

Method Detail

getElementback to summary
public final Element getElement()
Returns:Element

the element component of the message. null if a REMOVE event

getTypeback to summary
public final RmiEventMessage.RmiEventType getType()

Gets the event.

Returns:RmiEventMessage.RmiEventType

either PUT or REMOVE

net.sf.ehcache.distribution back to summary

public final Enum RmiEventMessage.RmiEventType

extends Enum<RmiEventMessage.RmiEventType>
Class Inheritance

Enumeration of event types.

Field Summary

Modifier and TypeField and Description
public static final RmiEventMessage.RmiEventType
PUT

A put or update event.

public static final RmiEventMessage.RmiEventType
REMOVE

A remove or invalidate event.

public static final RmiEventMessage.RmiEventType
REMOVE_ALL

A removeAll, which removes all elements from a cache

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static RmiEventMessage.RmiEventType
public static RmiEventMessage.RmiEventType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

PUTback to summary
public static final RmiEventMessage.RmiEventType PUT

A put or update event.

REMOVEback to summary
public static final RmiEventMessage.RmiEventType REMOVE

A remove or invalidate event.

REMOVE_ALLback to summary
public static final RmiEventMessage.RmiEventType REMOVE_ALL

A removeAll, which removes all elements from a cache

Constructor Detail

RmiEventTypeback to summary
private RmiEventType()

Method Detail

valueOfback to summary
public static RmiEventMessage.RmiEventType valueOf(String name)
valuesback to summary
public static RmiEventMessage.RmiEventType[] values()