ehcache

net.sf.ehcache.distribution
Class RmiEventMessage

java.lang.Object
  extended by net.sf.ehcache.distribution.EventMessage
      extended by net.sf.ehcache.distribution.RmiEventMessage
All Implemented Interfaces:
Serializable

public final class RmiEventMessage
extends EventMessage

Author:
cdennis
See Also:
Serialized Form

Nested Class Summary
static class RmiEventMessage.RmiEventType
          Enumeration of event types.
 
Constructor Summary
RmiEventMessage(Ehcache cache, RmiEventMessage.RmiEventType type, Serializable key, Element element)
          Full constructor.
 
Method Summary
 Element getElement()
           
 RmiEventMessage.RmiEventType getType()
          Gets the event.
 
Methods inherited from class net.sf.ehcache.distribution.EventMessage
getEhcache, getSerializableKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RmiEventMessage

public RmiEventMessage(Ehcache cache,
                       RmiEventMessage.RmiEventType type,
                       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

ehcache

Copyright 2001-2015, Terracotta, Inc.