Package org.apache.geode.cache.util

Provides utilities for use with the Caching API in the org.apache.geode.cache.util package.

Adapter classes are provided for convenience in implementing the CacheListener, RegionMembershipListener, RegionRoleListener, TransactionListener, and CacheWriter interfaces. These adapter classes simply implement the interfaces with empty methods so that subclasses only need implement the methods that are of interest.

  • Interface Summary 
    Interface Description
    GatewayConflictHelper
    GatewayConflictHelper is used by an GatewayConflictResolver to decide what to do with an event received from another distributed system that is going to overwrite the current cache state.
    GatewayConflictResolver
    GatewayConflictResolver is a Cache-level plugin that is called upon to decide what to do with events that originate in other systems and arrive through the WAN Gateway.
    GatewayEvent Deprecated.
    as of GemFire 8.0.
    ObjectSizer
    The sizer interface defines a method that when called returns the size of the object passed in.
    TimestampedEntryEvent
    TimestampedEntryEvent is an EntryEvent that has additional information provided to GatewayConflictResolver plugins.
  • Class Summary 
    Class Description
    AutoBalancer
    Re-balancing operation relocates data from heavily loaded members to lightly loaded members.
    CacheListenerAdapter<K,​V>
    Utility class that implements all methods in CacheListener with empty implementations.
    CacheWriterAdapter<K,​V>
    Utility class that implements all methods in CacheWriter with empty implementations.
    CqListenerAdapter  
    Gateway
    From 9.0 old wan support is removed.
    RegionMembershipListenerAdapter<K,​V>
    Utility class that implements all methods in RegionMembershipListener with empty implementations.
    RegionRoleListenerAdapter<K,​V> Deprecated.
    this feature is scheduled to be removed
    StringPrefixPartitionResolver
    This partition resolver requires every key of the partitioned region to be an instance of String and to contain at least one "|" delimiter.
    TransactionListenerAdapter
    Utility class that implements all methods in TransactionListener with empty implementations.
  • Enum Summary 
    Enum Description
    Gateway.OrderPolicy
    The order policy.