public class ScheduledRefreshCacheExtension extends Object implements CacheExtension
| Constructor and Description |
|---|
ScheduledRefreshCacheExtension(ScheduledRefreshConfiguration config,
Ehcache cache)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
CacheExtension |
clone(Ehcache cache) |
void |
dispose()
Note that this will not stop other instances of this refresh extension on
other nodes (in a clustered environment) from running.
|
static ExtendedStatistics.Statistic<Number> |
findJobStatistic(Ehcache cache)
Finds a single job statistic for this cache.
|
static Set<ExtendedStatistics.Statistic<Number>> |
findJobStatistics(Ehcache cache)
Find job counter statistic.
|
static ExtendedStatistics.Statistic<Number> |
findKeysProcessedStatistic(Ehcache cache)
Finds a single keys processed statistic for this cache.
|
static Set<ExtendedStatistics.Statistic<Number>> |
findKeysProcessedStatistics(Ehcache cache)
Find queued counter statistic.
|
static ExtendedStatistics.Statistic<Number> |
findRefreshStatistic(Ehcache cache)
Finds a single refresh statistic for this cache.
|
static Set<ExtendedStatistics.Statistic<Number>> |
findRefreshStatistics(Ehcache cache)
Find refreshed counter statistic.
|
long |
getJobCount()
Gets job count.
|
long |
getKeysProcessedCount()
Gets keys processed count.
|
long |
getRefreshCount()
Gets refresh count.
|
Status |
getStatus() |
void |
init() |
public ScheduledRefreshCacheExtension(ScheduledRefreshConfiguration config, Ehcache cache)
config - Configuration to use.cache - Cache to process against.public void init()
init in interface CacheExtensionpublic void dispose()
throws CacheException
dispose in interface CacheExtensionCacheExceptionpublic CacheExtension clone(Ehcache cache) throws CloneNotSupportedException
clone in interface CacheExtensionCloneNotSupportedExceptionpublic Status getStatus()
getStatus in interface CacheExtensionpublic long getRefreshCount()
public long getJobCount()
public long getKeysProcessedCount()
public static Set<ExtendedStatistics.Statistic<Number>> findRefreshStatistics(Ehcache cache)
cache - the cache this statistic is attached to.public static Set<ExtendedStatistics.Statistic<Number>> findJobStatistics(Ehcache cache)
cache - the cache this statistic is attached to.public static Set<ExtendedStatistics.Statistic<Number>> findKeysProcessedStatistics(Ehcache cache)
cache - the cache this statistic is attached to.public static ExtendedStatistics.Statistic<Number> findRefreshStatistic(Ehcache cache)
IllegalStateException if
there are none or more than one.cache - the cachepublic static ExtendedStatistics.Statistic<Number> findJobStatistic(Ehcache cache)
IllegalStateException if there are none or
more than one.cache - the cachepublic static ExtendedStatistics.Statistic<Number> findKeysProcessedStatistic(Ehcache cache)
IllegalStateException if
there are none or more than one.cache - the cacheCopyright © 2003–2024 Terracotta, Inc.. All rights reserved.