com.neeve.discovery
Class DiscoveryCacheEvents

java.lang.Object
  extended by com.neeve.discovery.DiscoveryCacheEvents

public final class DiscoveryCacheEvents
extends Object

Class containing discovery cache event definitions.

This class contains event type and associated structure definitions for events dispatched by a discovery cache.


Nested Class Summary
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.
 
Field Summary
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 Summary
DiscoveryCacheEvents()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVENT_ENTITY_ADD

public static final int EVENT_ENTITY_ADD
Indicates that a new entity has been added to the discovery cache.

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.

See Also:
Constant Field Values
Threading:
This event is dispatched by a thread of the cache's choosing. It is illegal to perform any operation on the cache from within the event handler.

EVENT_ENTITY_REMOVE

public static final int EVENT_ENTITY_REMOVE
Indicates that an entity has been removed from the discovery cache.

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.

See Also:
Constant Field Values
Threading:
This event is dispatched by a thread of the cache's choosing. It is illegal to perform any operation on the cache from within the event handler.
Constructor Detail

DiscoveryCacheEvents

public DiscoveryCacheEvents()


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.