GemFire 5.7

com.gemstone.gemfire.cache
Interface CacheCallback

All Known Subinterfaces:
AccessControl, Authenticator, AuthInitialize, CacheListener, CacheLoader, CacheWriter, CqListener, CustomExpiry, GatewayEventListener, RegionMembershipListener, RegionRoleListener, ServerLoadProbe, TransactionListener
All Known Implementing Classes:
BridgeClient, BridgeLoader, BridgeWriter, CacheListenerAdapter, CacheWriterAdapter, CqListenerAdapter, RegionMembershipListenerAdapter, RegionRoleListenerAdapter, ServerLoadProbeAdapter, TransactionListenerAdapter

public interface CacheCallback

User-defined objects that can be plugged into caching to receive callback notifications.

Since:
3.0

Method Summary
 void close()
          Called when the region containing this callback is closed or destroyed, when the cache is closed, or when a callback is removed from a region using an AttributesMutator.
 

Method Detail

close

void close()
Called when the region containing this callback is closed or destroyed, when the cache is closed, or when a callback is removed from a region using an AttributesMutator.

Implementations should cleanup 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.

See Also:
Cache.close(), Region.close(), Region.localDestroyRegion(), Region.destroyRegion(), AttributesMutator

GemFire 5.7

Copyright © 2002-2008 GemStone Systems, Inc. All Rights Reserved.