org.fjank.jcache.distribution
Class ClusterNotification

java.lang.Object
  extended by org.fjank.jcache.distribution.ClusterNotification
All Implemented Interfaces:
Serializable

public class ClusterNotification
extends Object
implements Serializable

A notification message that holds information about a cache event. This class is Serializable to allow it to be sent across the network to other machines running in a cluster.

Author:
Philippe Fajeau
See Also:
Serialized Form

Field Summary
protected  Serializable data
          Any additional data that may be required
protected  String group
           
static int OBJECT_ADDED
           
static int OBJECT_INVALIDATED
           
static int OBJECT_UPDATED
           
protected  String region
           
protected  int type
          The type of notification message.
 
Constructor Summary
ClusterNotification(String region, String group, int type, Serializable data)
          Creates a new notification message object to broadcast to other listening nodes in the cluster.
 
Method Summary
 Serializable getData()
          Holds any additional data that was required
 String getGroupName()
           
 String getRegionName()
           
 int getType()
          The type of notification message.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OBJECT_UPDATED

public static final int OBJECT_UPDATED
See Also:
Constant Field Values

OBJECT_ADDED

public static final int OBJECT_ADDED
See Also:
Constant Field Values

OBJECT_INVALIDATED

public static final int OBJECT_INVALIDATED
See Also:
Constant Field Values

data

protected Serializable data
Any additional data that may be required


type

protected int type
The type of notification message.


region

protected String region

group

protected String group
Constructor Detail

ClusterNotification

public ClusterNotification(String region,
                           String group,
                           int type,
                           Serializable data)
Creates a new notification message object to broadcast to other listening nodes in the cluster.

Parameters:
type - The type of notification message.
data - Specifies the object key or group name to flush.
Method Detail

getData

public Serializable getData()
Holds any additional data that was required


getType

public int getType()
The type of notification message.


getRegionName

public String getRegionName()

getGroupName

public String getGroupName()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2009 Hosted by SourceForge. All Rights Reserved.