public class CacheableStorageProviderModel extends PrioritizedComponentModel
Modifier and Type | Class and Description |
---|---|
static class |
CacheableStorageProviderModel.CachePolicy |
Modifier and Type | Field and Description |
---|---|
static String |
CACHE_INVALID_BEFORE |
static String |
CACHE_POLICY |
static String |
ENABLED |
static String |
EVICTION_DAY |
static String |
EVICTION_HOUR |
static String |
EVICTION_MINUTE |
static String |
MAX_LIFESPAN |
comparator, PRIORITY
Constructor and Description |
---|
CacheableStorageProviderModel() |
CacheableStorageProviderModel(ComponentModel copy) |
Modifier and Type | Method and Description |
---|---|
static long |
dailyEvictionBoundary(int hour,
int minute) |
static long |
dailyTimeout(int hour,
int minute) |
long |
getCacheInvalidBefore() |
CacheableStorageProviderModel.CachePolicy |
getCachePolicy() |
int |
getEvictionDay() |
int |
getEvictionHour() |
int |
getEvictionMinute() |
long |
getLifespan() |
long |
getMaxLifespan() |
boolean |
isEnabled() |
void |
setCacheInvalidBefore(long cacheInvalidBefore) |
void |
setCachePolicy(CacheableStorageProviderModel.CachePolicy cachePolicy) |
void |
setEnabled(boolean flag) |
void |
setEvictionDay(int evictionDay) |
void |
setEvictionHour(int evictionHour) |
void |
setEvictionMinute(int evictionMinute) |
void |
setMaxLifespan(long maxLifespan) |
boolean |
shouldInvalidate(CachedObject cached) |
static long |
weeklyTimeout(int day,
int hour,
int minute) |
getPriority, parsePriority, setPriority
contains, get, get, get, get, get, getConfig, getId, getName, getNote, getParentId, getProviderId, getProviderType, getSubType, hasNote, put, put, put, put, setConfig, setId, setName, setNote, setParentId, setProviderId, setProviderType, setSubType
public static final String CACHE_POLICY
public static final String MAX_LIFESPAN
public static final String EVICTION_HOUR
public static final String EVICTION_MINUTE
public static final String EVICTION_DAY
public static final String CACHE_INVALID_BEFORE
public static final String ENABLED
public CacheableStorageProviderModel()
public CacheableStorageProviderModel(ComponentModel copy)
public CacheableStorageProviderModel.CachePolicy getCachePolicy()
public void setCachePolicy(CacheableStorageProviderModel.CachePolicy cachePolicy)
public long getMaxLifespan()
public void setMaxLifespan(long maxLifespan)
public int getEvictionHour()
public void setEvictionHour(int evictionHour)
public int getEvictionMinute()
public void setEvictionMinute(int evictionMinute)
public int getEvictionDay()
public void setEvictionDay(int evictionDay)
public long getCacheInvalidBefore()
public void setCacheInvalidBefore(long cacheInvalidBefore)
public void setEnabled(boolean flag)
public boolean isEnabled()
public long getLifespan()
public boolean shouldInvalidate(CachedObject cached)
public static long dailyTimeout(int hour, int minute)
public static long dailyEvictionBoundary(int hour, int minute)
public static long weeklyTimeout(int day, int hour, int minute)
Copyright © 2019 JBoss by Red Hat. All rights reserved.