Enum Class CacheInfo.Type

java.lang.Object
java.lang.Enum<CacheInfo.Type>
org.jivesoftware.openfire.container.CacheInfo.Type
All Implemented Interfaces:
Serializable, Comparable<CacheInfo.Type>, Constable
Enclosing class:
CacheInfo

public static enum CacheInfo.Type extends Enum<CacheInfo.Type>
  • Enum Constant Details

    • replicated

      public static final CacheInfo.Type replicated
      Data is fully replicated to every member in the cluster. Offers the fastest read performance. Clustered, fault-tolerant cache with linear performance scalability for reads, but poor scalability for writes (as writes must be processed by every member in the cluster). Because data is replicated to all machines, adding servers does not increase aggregate cache capacity.
    • optimistic

      public static final CacheInfo.Type optimistic
      OptimisticCache is a clustered cache implementation similar to the ReplicatedCache implementation, but without any concurrency control. This implementation has the highest possible throughput. It also allows to use an alternative underlying store for the cached data (for example, a MRU/MFU-based cache). However, if two cluster members are independently pruning or purging the underlying local stores, it is possible that a cluster member may have a different store content than that held by another cluster member. This cache is good for frequent reads and not frequent writes. However, this cache will not scale fine if it has lot of content that will end up consuming all the JVM memory. For this case a distributed is a better option.
    • distributed

      public static final CacheInfo.Type distributed
      An distributed-scheme defines caches where the storage for entries is partitioned across cluster nodes. A hybrid cache; fronts a fault-tolerant, scalable partitioned cache with a local cache. Near cache invalidates front cache entries, using configurable invalidation strategy, and provides excellent performance and synchronization. Near cache backed by a partitioned cache offers zero-millisecond local access for repeat data access, while enabling concurrency and ensuring coherency and fail-over, effectively combining the best attributes of replicated and partitioned caches.
  • Method Details

    • values

      public static CacheInfo.Type[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CacheInfo.Type valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • valueof

      public static CacheInfo.Type valueof(String name)
    • getName

      public String getName()