public interface EntryListenerFlags
The flags are a bitmask and must be OR'ed together to indicate the combination of events desired to be received.
The constants kNew, kDelete, kUpdate, and kFlags represent different events that can occur to entries.
By default, notifications are only generated for remote changes occurring after the listener is created. The constants kImmediate and kLocal are modifiers that cause notifications to be generated at other times.
Modifier and Type | Field and Description |
---|---|
static int |
kDelete
Entry was deleted.
|
static int |
kFlags
Entry's flags changed.
|
static int |
kImmediate
Initial listener addition.
|
static int |
kLocal
Changed locally.
|
static int |
kNew
Newly created entry.
|
static int |
kUpdate
Entry's value changed.
|
static final int kImmediate
Set this flag to receive immediate notification of entries matching the flag criteria (generally only useful when combined with kNew).
static final int kLocal
Set this flag to receive notification of both local changes and changes coming from remote nodes. By default, notifications are only generated for remote changes. Must be combined with some combination of kNew, kDelete, kUpdate, and kFlags to receive notifications of those respective events.
static final int kNew
Set this flag to receive a notification when an entry is created.
static final int kDelete
Set this flag to receive a notification when an entry is deleted.
static final int kUpdate
Set this flag to receive a notification when an entry's value (or type) changes.
static final int kFlags
Set this flag to receive a notification when an entry's flags value changes.