|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<NotificationScope> net.sf.ehcache.event.NotificationScope
public enum NotificationScope
This enumeration defines valid values for event listener notification scope. By default an event listener will be open to listening for events created on all nodes (ALL). You may also specify to receive only LOCAL events or only REMOTE events.
Enum Constant Summary | |
---|---|
ALL
Receive all events |
|
LOCAL
Receive only events generated by this CacheManager |
|
REMOTE
Receive only events generated by another CacheManager |
Method Summary | |
---|---|
boolean |
shouldDeliver(boolean isRemote)
Determine whether an event should be delivered under this notification scope. |
static NotificationScope |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static NotificationScope[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final NotificationScope LOCAL
public static final NotificationScope REMOTE
public static final NotificationScope ALL
Method Detail |
---|
public static NotificationScope[] values()
for (NotificationScope c : NotificationScope.values()) System.out.println(c);
public static NotificationScope valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic boolean shouldDeliver(boolean isRemote)
isRemote
- Whether the event is local or remote
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |