public enum NotificationScope extends Enum<NotificationScope>
Enum Constant and Description |
---|
ALL
Receive all events
|
LOCAL
Receive only events generated by this CacheManager
|
REMOTE
Receive only events generated by another CacheManager
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final NotificationScope LOCAL
public static final NotificationScope REMOTE
public static final NotificationScope ALL
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 nameNullPointerException
- if the argument is nullpublic boolean shouldDeliver(boolean isRemote)
isRemote
- Whether the event is local or remoteCopyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.