CacheWriterAdapter

beforeCreate

Called before an entry is created. Entry creation is initiated by a
create, a put, or a get.
The CacheWriter can determine whether this value comes from a
get or not by evaluating the Operation's Operation.isLoad() method.
The entry being created may already exist in the local cache where this CacheWriter
is installed, but it does not yet exist in the cache where the operation was initiated.

beforeDestroy

Called before an entry is destroyed. The entry being destroyed may or may
not exist in the local cache where the CacheWriter is installed. This method
is not called as a result of expiration or
Region.localDestroy(Object).

beforeRegionDestroy

Called before a region is destroyed. The CacheWriter
will not additionally be called for each entry that is destroyed
in the region as a result of a region destroy. If the region's
subregions have CacheWriters installed, then they
will be called for the cascading subregion destroys.
This method is not called as a result of
expiration or Region.localDestroyRegion(). However, the
Region.close() method is invoked regardless of whether a
region is destroyed locally. A non-local region destroy results
in an invocation of CacheWriter.beforeRegionDestroy(com.gemstone.gemfire.cache.RegionEvent) followed by an
invocation of Region.close().

WARNING: This method should not destroy or create any regions itself or a
deadlock will occur.

beforeUpdate

Called before an entry is updated. The entry update is initiated by a put
or a get that causes the loader to update an existing entry.
The entry previously existed in the cache where the operation was
initiated, although the old value may have been null. The entry being
updated may or may not exist in the local cache where the CacheWriter is
installed.