public interface SerializedCacheValue<V>
SerializedCacheValuerepresents a serialized cache value. Instances of this class obtained from a region can be put into another region without a copy of this value being made. The two region entries will both have a reference to the same value.
If this value originated from a region stored off heap then this object can
only be used as long as notification method that obtained it has not returned.
For example if your implementation of
CacheListener.afterUpdate(EntryEvent) obtains one
EntryEvent.getSerializedOldValue() then the SerializedCacheValue returned
is only valid until your afterUpdate method returns. It is not safe to store instances of this
class and use them later when using off heap storage.
Copyright © 1997-2017 Pivotal Software, Inc. All rights reserved.