public class MemoryConfigurationBuilder extends Object implements Builder<MemoryConfiguration>, ConfigurationBuilderInfo
Modifier and Type | Field and Description |
---|---|
protected ConfigurationBuilder |
builder |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getNewBuilderInfo
jmxStatistics
protected final ConfigurationBuilder builder
public Collection<ConfigurationBuilderInfo> getChildrenInfo()
getChildrenInfo
in interface ConfigurationBuilderInfo
ConfigurationBuilderInfo
for the sub-elements of the builder.public AttributeSet attributes()
attributes
in interface BaseConfigurationInfo
AttributeSet
declared by the configuration.@Deprecated public MemoryConfigurationBuilder storageType(StorageType storageType)
storage(StorageType)
instead.StorageType
to determine how the data is stored in the data container.storageType
- the storage type of the underlying datapublic MemoryConfigurationBuilder storage(StorageType storageType)
public MemoryConfigurationBuilder maxSize(String size)
public String maxSize()
public MemoryConfigurationBuilder maxCount(long count)
public long maxCount()
@Deprecated public StorageType storageType()
storage()
instead.public StorageType storage()
@Deprecated public MemoryConfigurationBuilder size(long size)
maxSize(String)
to define the size in bytes or maxCount(long)
to define the number of entries.evictionType(EvictionType)
for more details on the size is interpreted.
If evictionStrategy(EvictionStrategy)
has not been invoked, this will set the strategy to
EvictionStrategy.REMOVE
.size
- the maximum size for the containerpublic ElementDefinition<?> getElementDefinition()
getElementDefinition
in interface BaseConfigurationInfo
ElementDefinition
of the configuration.@Deprecated public long size()
maxSize()
or maxCount()
.size(long)
.@Deprecated public MemoryConfigurationBuilder evictionType(EvictionType type)
maxCount(long)
or maxSize(String)
to define data container bounds
by size or by count.size(long)
size(long)
type
- @Deprecated public EvictionType evictionType()
evictionType(EvictionType)
evictionType(EvictionType)
.@Deprecated public MemoryConfigurationBuilder evictionStrategy(EvictionStrategy strategy)
whenFull(EvictionStrategy)
instead.strategy
- the strategy to setpublic MemoryConfigurationBuilder whenFull(EvictionStrategy strategy)
public EvictionStrategy whenFull()
@Deprecated public EvictionStrategy evictionStrategy()
whenFull()
instead.evictionStrategy(EvictionStrategy)
.public void validate()
Builder
validate
in interface Builder<MemoryConfiguration>
public void validate(GlobalConfiguration globalConfig)
validate
in interface ConfigurationChildBuilder
public MemoryConfiguration create()
Builder
create
in interface Builder<MemoryConfiguration>
public MemoryConfigurationBuilder read(MemoryConfiguration template)
Builder
read
in interface Builder<MemoryConfiguration>
template
- the configuration from which to "clone" this config if needed.public ConfigurationBuilderInfo getBuilderInfo(String name, String qualifier)
getBuilderInfo
in interface ConfigurationBuilderInfo
ConfigurationBuilderInfo
associated with a certain serialized element name.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.