- All Implemented Interfaces:
- Serializable, Comparable<CacheInfo.Type>
- Enclosing class:
public static enum CacheInfo.Type
- extends Enum<CacheInfo.Type>
Enum Constant Summary
An distributed-scheme defines caches where the storage for entries is partitioned across cluster nodes.
OptimisticCache is a clustered cache implementation similar to the ReplicatedCache implementation, but
without any concurrency control.
Data is fully replicated to every member in the cluster.
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.
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.
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.
public static final CacheInfo.Type values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(CacheInfo.Type c : CacheInfo.Type.values())
- an array containing the constants of this enum type, in
the order they're declared
public static CacheInfo.Type valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
name - the name of the enum constant to be returned.
- the enum constant with the specified name
IllegalArgumentException - if this enum type has no constant
with the specified name
public static CacheInfo.Type valueof(String name)
public String getName()
Copyright © 2003-2008 Jive Software.