public class ExpirationConfigurationBuilder extends Object implements Builder<ExpirationConfiguration>, ConfigurationBuilderInfo
Modifier and Type | Field and Description |
---|---|
protected ConfigurationBuilder |
builder |
Modifier and Type | Method and Description |
---|---|
AttributeSet |
attributes() |
Configuration |
build() |
ClusteringConfigurationBuilder |
clustering() |
ExpirationConfiguration |
create()
Create the configuration bean
|
CustomInterceptorsConfigurationBuilder |
customInterceptors()
Deprecated.
Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptors
|
ExpirationConfigurationBuilder |
disableReaper()
Disable the background reaper to test entries for expiration.
|
ExpirationConfigurationBuilder |
enableReaper()
Enable the background reaper to test entries for expiration.
|
EncodingConfigurationBuilder |
encoding() |
ExpirationConfigurationBuilder |
expiration() |
protected ConfigurationBuilder |
getBuilder() |
ElementDefinition |
getElementDefinition() |
IndexingConfigurationBuilder |
indexing() |
InvocationBatchingConfigurationBuilder |
invocationBatching() |
ExpirationConfigurationBuilder |
lifespan(long l)
Maximum lifespan of a cache entry, after which the entry is expired cluster-wide, in
milliseconds.
|
ExpirationConfigurationBuilder |
lifespan(long l,
TimeUnit unit)
Maximum lifespan of a cache entry, after which the entry is expired cluster-wide, in
milliseconds.
|
LockingConfigurationBuilder |
locking() |
ExpirationConfigurationBuilder |
maxIdle(long l)
Maximum idle time a cache entry will be maintained in the cache, in milliseconds.
|
ExpirationConfigurationBuilder |
maxIdle(long l,
TimeUnit unit)
Maximum idle time a cache entry will be maintained in the cache, in milliseconds.
|
MemoryConfigurationBuilder |
memory() |
PersistenceConfigurationBuilder |
persistence() |
ExpirationConfigurationBuilder |
read(ExpirationConfiguration template)
Reads the configuration from an already created configuration bean into this builder.
|
boolean |
reaperEnabled() |
ExpirationConfigurationBuilder |
reaperEnabled(boolean enabled)
Enable the background reaper to test entries for expiration.
|
SecurityConfigurationBuilder |
security() |
boolean |
simpleCache() |
ConfigurationChildBuilder |
simpleCache(boolean simpleCache) |
SitesConfigurationBuilder |
sites() |
StatisticsConfigurationBuilder |
statistics() |
ConfigurationChildBuilder |
template(boolean template) |
String |
toString() |
TransactionConfigurationBuilder |
transaction() |
UnsafeConfigurationBuilder |
unsafe() |
void |
validate()
Validate the data in this builder before building the configuration bean
|
void |
validate(GlobalConfiguration globalConfig) |
long |
wakeupInterval() |
ExpirationConfigurationBuilder |
wakeUpInterval(long l)
Interval (in milliseconds) between subsequent runs to purge expired entries from memory and
any cache stores.
|
ExpirationConfigurationBuilder |
wakeUpInterval(long l,
TimeUnit unit)
Interval (in milliseconds) between subsequent runs to purge expired entries from memory and
any cache stores.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBuilderInfo, getChildrenInfo, getNewBuilderInfo
jmxStatistics
protected final ConfigurationBuilder builder
public ElementDefinition getElementDefinition()
getElementDefinition
in interface BaseConfigurationInfo
ElementDefinition
of the configuration.public ExpirationConfigurationBuilder lifespan(long l)
public ExpirationConfigurationBuilder lifespan(long l, TimeUnit unit)
public ExpirationConfigurationBuilder maxIdle(long l)
public ExpirationConfigurationBuilder maxIdle(long l, TimeUnit unit)
public ExpirationConfigurationBuilder enableReaper()
public ExpirationConfigurationBuilder reaperEnabled(boolean enabled)
public ExpirationConfigurationBuilder disableReaper()
public boolean reaperEnabled()
public ExpirationConfigurationBuilder wakeUpInterval(long l)
public long wakeupInterval()
public ExpirationConfigurationBuilder wakeUpInterval(long l, TimeUnit unit)
public void validate()
Builder
validate
in interface Builder<ExpirationConfiguration>
public void validate(GlobalConfiguration globalConfig)
validate
in interface ConfigurationChildBuilder
public AttributeSet attributes()
attributes
in interface BaseConfigurationInfo
AttributeSet
declared by the configuration.public ExpirationConfiguration create()
Builder
create
in interface Builder<ExpirationConfiguration>
public ExpirationConfigurationBuilder read(ExpirationConfiguration template)
Builder
read
in interface Builder<ExpirationConfiguration>
template
- the configuration from which to "clone" this config if needed.public ConfigurationChildBuilder template(boolean template)
template
in interface ConfigurationChildBuilder
public ConfigurationChildBuilder simpleCache(boolean simpleCache)
simpleCache
in interface ConfigurationChildBuilder
public boolean simpleCache()
simpleCache
in interface ConfigurationChildBuilder
public ClusteringConfigurationBuilder clustering()
clustering
in interface ConfigurationChildBuilder
@Deprecated public CustomInterceptorsConfigurationBuilder customInterceptors()
customInterceptors
in interface ConfigurationChildBuilder
public EncodingConfigurationBuilder encoding()
encoding
in interface ConfigurationChildBuilder
public ExpirationConfigurationBuilder expiration()
expiration
in interface ConfigurationChildBuilder
public IndexingConfigurationBuilder indexing()
indexing
in interface ConfigurationChildBuilder
public InvocationBatchingConfigurationBuilder invocationBatching()
invocationBatching
in interface ConfigurationChildBuilder
public StatisticsConfigurationBuilder statistics()
statistics
in interface ConfigurationChildBuilder
public PersistenceConfigurationBuilder persistence()
persistence
in interface ConfigurationChildBuilder
public LockingConfigurationBuilder locking()
locking
in interface ConfigurationChildBuilder
public SecurityConfigurationBuilder security()
security
in interface ConfigurationChildBuilder
public TransactionConfigurationBuilder transaction()
transaction
in interface ConfigurationChildBuilder
public UnsafeConfigurationBuilder unsafe()
unsafe
in interface ConfigurationChildBuilder
public SitesConfigurationBuilder sites()
sites
in interface ConfigurationChildBuilder
public MemoryConfigurationBuilder memory()
memory
in interface ConfigurationChildBuilder
protected ConfigurationBuilder getBuilder()
public Configuration build()
build
in interface ConfigurationChildBuilder
Copyright © 2021 JBoss by Red Hat. All rights reserved.