public class Cache<T extends Cache<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Cache.CacheResources
Child mutators for Cache
|
Modifier and Type | Method and Description |
---|---|
Long |
activations()
The number of cache node activations (bringing a node into memory from a
cache store).
|
T |
activations(Long value)
The number of cache node activations (bringing a node into memory from a
cache store).
|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
Long |
averageReadTime()
Average time (in ms) for cache reads.
|
T |
averageReadTime(Long value)
Average time (in ms) for cache reads.
|
Long |
averageRemoveTime()
Average time (in ms) for cache removes.
|
T |
averageRemoveTime(Long value)
Average time (in ms) for cache removes.
|
Long |
averageReplicationTime()
The average time taken to replicate data around the cluster.
|
T |
averageReplicationTime(Long value)
The average time taken to replicate data around the cluster.
|
Long |
averageWriteTime()
Average time (in ms) for cache writes.
|
T |
averageWriteTime(Long value)
Average time (in ms) for cache writes.
|
Long |
evictions()
The number of cache eviction operations.
|
T |
evictions(Long value)
The number of cache eviction operations.
|
String |
getKey() |
Double |
hitRatio()
The hit/miss ratio for the cache (hits/hits+misses).
|
T |
hitRatio(Double value)
The hit/miss ratio for the cache (hits/hits+misses).
|
Long |
hits()
The number of cache attribute hits.
|
T |
hits(Long value)
The number of cache attribute hits.
|
Long |
invalidations()
The number of cache invalidations.
|
T |
invalidations(Long value)
The number of cache invalidations.
|
T |
lockingComponent()
The locking configuration of the cache.
|
T |
lockingComponent(LockingComponent value)
The locking configuration of the cache.
|
T |
lockingComponent(LockingComponentConsumer consumer)
The locking configuration of the cache.
|
T |
lockingComponent(LockingComponentSupplier supplier)
The locking configuration of the cache.
|
Long |
misses()
The number of cache attribute misses.
|
T |
misses(Long value)
The number of cache attribute misses.
|
Integer |
numberOfEntries()
The number of entries in the cache including passivated entries.
|
T |
numberOfEntries(Integer value)
The number of entries in the cache including passivated entries.
|
Integer |
numberOfEntriesInMemory()
The number of entries in the cache excluding passivated entries.
|
T |
numberOfEntriesInMemory(Integer value)
The number of entries in the cache excluding passivated entries.
|
T |
partitionHandlingComponent()
The partition handling configuration for distributed and replicated
caches.
|
T |
partitionHandlingComponent(PartitionHandlingComponent value)
The partition handling configuration for distributed and replicated
caches.
|
T |
partitionHandlingComponent(PartitionHandlingComponentConsumer consumer)
The partition handling configuration for distributed and replicated
caches.
|
T |
partitionHandlingComponent(PartitionHandlingComponentSupplier supplier)
The partition handling configuration for distributed and replicated
caches.
|
Long |
passivations()
The number of cache node passivations (passivating a node from memory to
a cache store).
|
T |
passivations(Long value)
The number of cache node passivations (passivating a node from memory to
a cache store).
|
T |
persistenceComponent()
The configuration of the infinispan subsystem.
|
T |
persistenceComponent(PersistenceComponent value)
The configuration of the infinispan subsystem.
|
T |
persistenceComponent(PersistenceComponentConsumer consumer)
The configuration of the infinispan subsystem.
|
T |
persistenceComponent(PersistenceComponentSupplier supplier)
The configuration of the infinispan subsystem.
|
Double |
readWriteRatio()
The read/write ratio of the cache ((hits+misses)/stores).
|
T |
readWriteRatio(Double value)
The read/write ratio of the cache ((hits+misses)/stores).
|
Long |
removeHits()
The number of cache attribute remove hits.
|
T |
removeHits(Long value)
The number of cache attribute remove hits.
|
Long |
removeMisses()
The number of cache attribute remove misses.
|
T |
removeMisses(Long value)
The number of cache attribute remove misses.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
Long |
replicationCount()
The number of times data was replicated around the cluster.
|
T |
replicationCount(Long value)
The number of times data was replicated around the cluster.
|
Long |
replicationFailures()
The number of data replication failures.
|
T |
replicationFailures(Long value)
The number of data replication failures.
|
Cache.CacheResources |
subresources() |
Double |
successRatio()
The data replication success ratio (successes/successes+failures).
|
T |
successRatio(Double value)
The data replication success ratio (successes/successes+failures).
|
Long |
timeSinceReset()
Time (in secs) since cache statistics were reset.
|
T |
timeSinceReset(Long value)
Time (in secs) since cache statistics were reset.
|
Long |
timeSinceStart()
Time (in secs) since cache was started.
|
T |
timeSinceStart(Long value)
Time (in secs) since cache was started.
|
T |
transactionComponent()
The cache transaction configuration.
|
T |
transactionComponent(TransactionComponent value)
The cache transaction configuration.
|
T |
transactionComponent(TransactionComponentConsumer consumer)
The cache transaction configuration.
|
T |
transactionComponent(TransactionComponentSupplier supplier)
The cache transaction configuration.
|
Long |
writes()
The number of cache attribute put operations.
|
T |
writes(Long value)
The number of cache attribute put operations.
|
public Cache(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Cache.CacheResources subresources()
public T persistenceComponent(PersistenceComponent value)
public T persistenceComponent(PersistenceComponentConsumer consumer)
public T persistenceComponent()
public T persistenceComponent(PersistenceComponentSupplier supplier)
public T transactionComponent(TransactionComponent value)
public T transactionComponent(TransactionComponentConsumer consumer)
public T transactionComponent()
public T transactionComponent(TransactionComponentSupplier supplier)
public T partitionHandlingComponent(PartitionHandlingComponent value)
public T partitionHandlingComponent(PartitionHandlingComponentConsumer consumer)
public T partitionHandlingComponent()
public T partitionHandlingComponent(PartitionHandlingComponentSupplier supplier)
public T lockingComponent(LockingComponent value)
public T lockingComponent(LockingComponentConsumer consumer)
public T lockingComponent()
public T lockingComponent(LockingComponentSupplier supplier)
public Long activations()
public T activations(Long value)
public Long averageReadTime()
public T averageReadTime(Long value)
public Long averageRemoveTime()
public Long averageReplicationTime()
public T averageReplicationTime(Long value)
public Long averageWriteTime()
public Long evictions()
public Double hitRatio()
public Long hits()
public Long invalidations()
public Long misses()
public Integer numberOfEntries()
public T numberOfEntries(Integer value)
public Integer numberOfEntriesInMemory()
public T numberOfEntriesInMemory(Integer value)
public Long passivations()
public T passivations(Long value)
public Double readWriteRatio()
public T readWriteRatio(Double value)
public Long removeHits()
public Long removeMisses()
public Long replicationCount()
public T replicationCount(Long value)
public Long replicationFailures()
public T replicationFailures(Long value)
public Double successRatio()
public T successRatio(Double value)
public Long timeSinceReset()
public T timeSinceReset(Long value)
public Long timeSinceStart()
public Long writes()
Copyright © 2020 JBoss by Red Hat. All rights reserved.