public final class DiscoveryCacheEvents extends Object
This class contains event type and associated structure definitions for events dispatched by a discovery cache.
Modifier and Type | Class and Description |
---|---|
static class |
DiscoveryCacheEvents.DiscoveryCacheAddEventData
Data object for the
EVENT_ENTITY_ADD event type. |
static class |
DiscoveryCacheEvents.DiscoveryCacheRemoveEventData
Data object for the
EVENT_ENTITY_REMOVE event type. |
static class |
DiscoveryCacheEvents.EntityRemovalCause
Enumerate the possible reasons for removal of an entity from a cache.
|
Modifier and Type | Field and Description |
---|---|
static int |
EVENT_ENTITY_ADD
Indicates that a new entity has been added to the discovery cache.
|
static int |
EVENT_ENTITY_REMOVE
Indicates that an entity has been removed from the discovery cache.
|
Constructor and Description |
---|
DiscoveryCacheEvents() |
public static final int EVENT_ENTITY_ADD
This event is dispatched by a discovery cache when a new entity is
added to the cache or an entity is replaced in the cache. The event
data for this event is a DiscoveryCacheEvents.DiscoveryCacheAddEventData
object.
public static final int EVENT_ENTITY_REMOVE
This event is dispatched by a discovery cache when an entity is
removed from the cache. The removal could be either due to explicit
removal by the user or due to entity expiry. The event data for this
event is a DiscoveryCacheEvents.DiscoveryCacheRemoveEventData
object.
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.