public class L1ConfigurationBuilder extends Object implements Builder<L1Configuration>, ConfigurationBuilderInfo
Modifier and Type | Field and Description |
---|---|
protected ConfigurationBuilder |
builder |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBuilderInfo, getChildrenInfo, getNewBuilderInfo
build, clustering, customInterceptors, encoding, expiration, indexing, invocationBatching, jmxStatistics, locking, memory, persistence, security, simpleCache, simpleCache, sites, statistics, template, transaction, unsafe
protected final ConfigurationBuilder builder
public ElementDefinition getElementDefinition()
getElementDefinition
in interface BaseConfigurationInfo
ElementDefinition
of the configuration.public AttributeSet attributes()
attributes
in interface BaseConfigurationInfo
AttributeSet
declared by the configuration.public L1ConfigurationBuilder invalidationThreshold(int invalidationThreshold)
Determines whether a multicast or a web of unicasts are used when performing L1 invalidations.
By default multicast will be used.
If the threshold is set to -1, then unicasts will always be used. If the threshold is set to 0, then multicast will be always be used.
invalidationThreshold
- the threshold over which to use a multicastpublic L1ConfigurationBuilder lifespan(long lifespan)
public L1ConfigurationBuilder lifespan(long lifespan, TimeUnit unit)
public L1ConfigurationBuilder cleanupTaskFrequency(long frequencyMillis)
public L1ConfigurationBuilder cleanupTaskFrequency(long frequencyMillis, TimeUnit unit)
public L1ConfigurationBuilder enable()
public L1ConfigurationBuilder disable()
public L1ConfigurationBuilder enabled(boolean enabled)
public void validate()
Builder
validate
in interface Builder<L1Configuration>
public void validate(GlobalConfiguration globalConfig)
validate
in interface ConfigurationChildBuilder
public L1Configuration create()
Builder
create
in interface Builder<L1Configuration>
public L1ConfigurationBuilder read(L1Configuration template)
Builder
read
in interface Builder<L1Configuration>
template
- the configuration from which to "clone" this config if needed.public HashConfigurationBuilder hash()
ClusteringConfigurationChildBuilder
hash
in interface ClusteringConfigurationChildBuilder
public L1ConfigurationBuilder l1()
ClusteringConfigurationChildBuilder
l1
in interface ClusteringConfigurationChildBuilder
public StateTransferConfigurationBuilder stateTransfer()
ClusteringConfigurationChildBuilder
stateTransfer
in interface ClusteringConfigurationChildBuilder
public PartitionHandlingConfigurationBuilder partitionHandling()
ClusteringConfigurationChildBuilder
partitionHandling
in interface ClusteringConfigurationChildBuilder
protected ClusteringConfigurationBuilder getClusteringBuilder()
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.