|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.ehcache.distribution.EventMessage
net.sf.ehcache.distribution.LegacyEventMessage
net.sf.ehcache.distribution.jgroups.JGroupEventMessage
public class JGroupEventMessage
An EventMessage used for JGroups
| Field Summary | |
|---|---|
static int |
BOOTSTRAP_COMPLETE
Bootstrap complete |
static int |
BOOTSTRAP_INCOMPLETE
Bootstrap could not be completed for some reason |
static int |
BOOTSTRAP_REQUEST
Request for bootstrap |
static int |
BOOTSTRAP_RESPONSE
Reply to bootstrap |
| Fields inherited from class net.sf.ehcache.distribution.LegacyEventMessage |
|---|
PUT, REMOVE, REMOVE_ALL |
| Constructor Summary | |
|---|---|
JGroupEventMessage(int event,
Serializable key,
net.sf.ehcache.Element element,
String cacheName)
|
|
JGroupEventMessage(int event,
Serializable key,
net.sf.ehcache.Element element,
String cacheName,
long asyncTime)
An event message for the JGroupsCacheReplicator. |
|
| Method Summary | |
|---|---|
long |
getAsyncTime()
|
String |
getCacheName()
Returns the cache name |
static String |
getEventName(int event)
Convert a numeric event ID to a String name. |
boolean |
isAsync()
|
String |
toString()
|
| Methods inherited from class net.sf.ehcache.distribution.LegacyEventMessage |
|---|
getElement, getEvent, isValid |
| 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, wait, wait, wait |
| Field Detail |
|---|
public static final int BOOTSTRAP_REQUEST
public static final int BOOTSTRAP_RESPONSE
public static final int BOOTSTRAP_COMPLETE
public static final int BOOTSTRAP_INCOMPLETE
| Constructor Detail |
|---|
public JGroupEventMessage(int event,
Serializable key,
net.sf.ehcache.Element element,
String cacheName)
JGroupEventMessage(int, Serializable, Element, String, long)
public JGroupEventMessage(int event,
Serializable key,
net.sf.ehcache.Element element,
String cacheName,
long asyncTime)
event - (PUT,REMOVE,REMOVE_ALL)key - the serializable key of the cache elementelement - The element itself. In case of a put.cacheName - the name of the cacheasyncTime - the asynchronous replication period for this message, -1 results in synchronous replication| Method Detail |
|---|
public boolean isAsync()
public long getAsyncTime()
public String getCacheName()
public String toString()
toString in class Objectpublic static String getEventName(int event)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||