VMware Tanzu GemFire Native .NET Reference 10.2.7
|
Utility class that implements all methods in ICacheListener
with empty implementations.
More...
#include <CacheListenerAdapter.hpp>
Inherits Apache::Geode::Client::ICacheListener< TKey, TValue >.
Public Member Functions | |
virtual void | AfterCreate (EntryEvent< TKey, TValue >^ ev) |
Handles the event of a new key being added to a region. More... | |
virtual void | AfterDestroy (EntryEvent< TKey, TValue >^ ev) |
Handles the event of an entry being destroyed. More... | |
virtual void | AfterInvalidate (EntryEvent< TKey, TValue >^ ev) |
Handles the event of an entry's value being invalidated. More... | |
virtual void | AfterRegionClear (RegionEvent< TKey, TValue >^ ev) |
Handles the event of a region being cleared. More... | |
virtual void | AfterRegionDestroy (RegionEvent< TKey, TValue >^ ev) |
Handles the event of a region being destroyed. More... | |
virtual void | AfterRegionInvalidate (RegionEvent< TKey, TValue >^ ev) |
Handles the event of a region being invalidated. More... | |
virtual void | AfterRegionLive (RegionEvent< TKey, TValue >^ ev) |
Handles the event of a region going live. More... | |
virtual void | AfterUpdate (EntryEvent< TKey, TValue >^ ev) |
Handles the event of an entry's value being modified in a region. More... | |
virtual void | Close (Apache::Geode::Client::IRegion< TKey, TValue >^ region) |
Called when the region containing this callback is destroyed, when the cache is closed. More... | |
Utility class that implements all methods in ICacheListener
with empty implementations.
Applications can subclass this class and only override the methods for the events of interest.
|
inlinevirtual |
Handles the event of a new key being added to a region.
The entry did not previously exist in this region in the local cache (even with a null value).
This function does not throw any exception.
ev | Denotes the event object associated with the entry creation. |
Implements Apache::Geode::Client::ICacheListener< TKey, TValue >.
|
inlinevirtual |
Handles the event of an entry being destroyed.
ev | EntryEvent denotes the event object associated with the entry destruction. |
Implements Apache::Geode::Client::ICacheListener< TKey, TValue >.
|
inlinevirtual |
Handles the event of an entry's value being invalidated.
ev | EntryEvent denotes the event object associated with the entry invalidation. |
Implements Apache::Geode::Client::ICacheListener< TKey, TValue >.
|
inlinevirtual |
Handles the event of a region being cleared.
Implements Apache::Geode::Client::ICacheListener< TKey, TValue >.
|
inlinevirtual |
Handles the event of a region being destroyed.
Events are not invoked for each individual entry that is destroyed as a result of the region being destroyed. Each subregion, however, gets its own AfterRegionDestroyed
event invoked on its listener.
ev | RegionEvent denotes the event object associated with the region destruction. |
Implements Apache::Geode::Client::ICacheListener< TKey, TValue >.
|
inlinevirtual |
Handles the event of a region being invalidated.
Events are not invoked for each individual value that is invalidated as a result of the region being invalidated. Each subregion, however, gets its own RegionInvalidated
event invoked on its listener.
ev | RegionEvent denotes the event object associated with the region invalidation. |
Implements Apache::Geode::Client::ICacheListener< TKey, TValue >.
|
inlinevirtual |
Handles the event of a region going live.
Each subregion gets its own AfterRegionLive
event invoked on its listener.
ev | RegionEvent denotes the event object associated with the region going live. |
Implements Apache::Geode::Client::ICacheListener< TKey, TValue >.
|
inlinevirtual |
Handles the event of an entry's value being modified in a region.
This entry previously existed in this region in the local cache, but its previous value may have been null.
ev | EntryEvent denotes the event object associated with updating the entry. |
Implements Apache::Geode::Client::ICacheListener< TKey, TValue >.
|
inlinevirtual |
Called when the region containing this callback is destroyed, when the cache is closed.
Implementations should clean up any external resources, such as database connections. Any runtime exceptions this method throws will be logged.
It is possible for this method to be called multiple times on a single callback instance, so implementations must be tolerant of this.
summary> Called when all the endpoints associated with region are down. This will be called when all the endpoints are down for the first time. If endpoints come up and again go down it will be called again. This will also be called when all endpoints are down and region is attached to the pool. /summary> remarks> /remark> param> region Region^ denotes the assosiated region. /param>
Implements Apache::Geode::Client::ICacheListener< TKey, TValue >.