ehcache

net.sf.ehcache.distribution.jgroups
Class JGroupSerializable

java.lang.Object
  extended by net.sf.ehcache.distribution.jgroups.JGroupSerializable
All Implemented Interfaces:
java.io.Serializable

public class JGroupSerializable
extends java.lang.Object
implements java.io.Serializable

Serializable type used for Jgroups type replication

Version:
$Id: JGroupSerializable.java 592 2008-03-17 08:39:56Z gregluck $
Author:
Pierre Monestie (pmonestie__REMOVE__THIS__@gmail.com), Greg Luck
See Also:
Serialized Form

Field Summary
static int PUT
          A put or update event.
static int REMOVE
          A remove or invalidate event.
static int REMOVE_ALL
          A removeAll, which removes all elements from a cache
 
Constructor Summary
JGroupSerializable(int event, java.io.Serializable key, java.lang.Object value, java.lang.String cacheName)
           
 
Method Summary
 java.lang.String getCacheName()
          Gets the cache name
 int getEvent()
          Gets the event
 java.io.Serializable getKey()
          Get the Serializable key for the event
 java.lang.Object getValue()
          Gets the value, null if REMOVE or REMOVE_ALL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PUT

public static final int PUT
A put or update event.

See Also:
Constant Field Values

REMOVE

public static final int REMOVE
A remove or invalidate event.

See Also:
Constant Field Values

REMOVE_ALL

public static final int REMOVE_ALL
A removeAll, which removes all elements from a cache

See Also:
Constant Field Values
Constructor Detail

JGroupSerializable

public JGroupSerializable(int event,
                          java.io.Serializable key,
                          java.lang.Object value,
                          java.lang.String cacheName)
Parameters:
event - the type of replication event
key - the key
value - can be null if REMOVE or REMOVE_ALL
Method Detail

getEvent

public int getEvent()
Gets the event

Returns:
the event

getKey

public java.io.Serializable getKey()
Get the Serializable key for the event

Returns:
the key

getValue

public java.lang.Object getValue()
Gets the value, null if REMOVE or REMOVE_ALL

Returns:
the value

getCacheName

public java.lang.String getCacheName()
Gets the cache name

Returns:
the cache name

ehcache