|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fjank.jcache.distribution.ClusterNotification
public class ClusterNotification
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.
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 |
---|
public static final int OBJECT_UPDATED
public static final int OBJECT_ADDED
public static final int OBJECT_INVALIDATED
protected Serializable data
protected int type
protected String region
protected String group
Constructor Detail |
---|
public ClusterNotification(String region, String group, int type, Serializable data)
type
- The type of notification message.data
- Specifies the object key or group name to flush.Method Detail |
---|
public Serializable getData()
public int getType()
public String getRegionName()
public String getGroupName()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |