Class RestStoreConfigurationBuilder
- java.lang.Object
-
- org.infinispan.configuration.cache.AbstractPersistenceConfigurationChildBuilder
-
- org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder<RestStoreConfiguration,RestStoreConfigurationBuilder>
-
- org.infinispan.persistence.rest.configuration.RestStoreConfigurationBuilder
-
- All Implemented Interfaces:
Builder<RestStoreConfiguration>,Self<RestStoreConfigurationBuilder>,ConfigurationChildBuilder,PersistenceConfigurationChildBuilder,StoreConfigurationBuilder<RestStoreConfiguration,RestStoreConfigurationBuilder>,StoreConfigurationChildBuilder<RestStoreConfigurationBuilder>,RestStoreConfigurationChildBuilder<RestStoreConfigurationBuilder>
public class RestStoreConfigurationBuilder extends AbstractStoreConfigurationBuilder<RestStoreConfiguration,RestStoreConfigurationBuilder> implements RestStoreConfigurationChildBuilder<RestStoreConfigurationBuilder>
RestStoreConfigurationBuilder. Configures aRestStore- Since:
- 6.0
- Author:
- Tristan Tarrant
-
-
Field Summary
Fields Modifier and Type Field Description protected ConfigurationBuilderbuilder-
Fields inherited from class org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder
async, attributes, fetchPersistentState, ignoreModifications, preload, properties, purgeOnStartup, shared, singletonStore
-
-
Constructor Summary
Constructors Constructor Description RestStoreConfigurationBuilder(PersistenceConfigurationBuilder builder)
-
Method Summary
-
Methods inherited from class org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, properties, purgeOnStartup, segmented, shared, singleton, toString, transactional, validate, validate, withProperties
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
build, clustering, compatibility, customInterceptors, dataContainer, deadlockDetection, encoding, eviction, expiration, indexing, invocationBatching, jmxStatistics, locking, memory, security, simpleCache, simpleCache, sites, storeAsBinary, template, transaction, unsafe, validate, versioning
-
Methods inherited from interface org.infinispan.configuration.cache.PersistenceConfigurationChildBuilder
persistence
-
Methods inherited from interface org.infinispan.configuration.cache.StoreConfigurationChildBuilder
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, purgeOnStartup, segmented, shared, singleton, transactional, withProperties
-
-
-
-
Field Detail
-
builder
protected final ConfigurationBuilder builder
-
-
Constructor Detail
-
RestStoreConfigurationBuilder
public RestStoreConfigurationBuilder(PersistenceConfigurationBuilder builder)
-
-
Method Detail
-
self
public RestStoreConfigurationBuilder self()
- Specified by:
selfin interfaceSelf<RestStoreConfigurationBuilder>
-
connectionPool
public ConnectionPoolConfigurationBuilder connectionPool()
Description copied from interface:RestStoreConfigurationChildBuilderConfigures the connection pool- Specified by:
connectionPoolin interfaceRestStoreConfigurationChildBuilder<RestStoreConfigurationBuilder>
-
host
public RestStoreConfigurationBuilder host(String host)
Description copied from interface:RestStoreConfigurationChildBuilderThe host to connect to- Specified by:
hostin interfaceRestStoreConfigurationChildBuilder<RestStoreConfigurationBuilder>
-
key2StringMapper
public RestStoreConfigurationBuilder key2StringMapper(String key2StringMapper)
Description copied from interface:RestStoreConfigurationChildBuilderThe class name of aKey2StringMapperto use for mapping keys to strings suitable for RESTful retrieval/storage. Defaults toWrappedByteArrayOrPrimitiveMapper- Specified by:
key2StringMapperin interfaceRestStoreConfigurationChildBuilder<RestStoreConfigurationBuilder>
-
key2StringMapper
public RestStoreConfigurationBuilder key2StringMapper(Class<? extends MarshallingTwoWayKey2StringMapper> klass)
Description copied from interface:RestStoreConfigurationChildBuilderThe class of aKey2StringMapperto use for mapping keys to strings suitable for RESTful retrieval/storage. Defaults toWrappedByteArrayOrPrimitiveMapper- Specified by:
key2StringMapperin interfaceRestStoreConfigurationChildBuilder<RestStoreConfigurationBuilder>
-
metadataHelper
public RestStoreConfigurationBuilder metadataHelper(String metadataHelper)
Description copied from interface:RestStoreConfigurationChildBuilderThe class name of aMetadataHelperto use for managing appropriate metadata for the entries Defaults toEmbeddedMetadataHelper- Specified by:
metadataHelperin interfaceRestStoreConfigurationChildBuilder<RestStoreConfigurationBuilder>
-
metadataHelper
public RestStoreConfigurationBuilder metadataHelper(Class<? extends MetadataHelper> metadataHelper)
Description copied from interface:RestStoreConfigurationChildBuilderThe class of aMetadataHelperto use for managing appropriate metadata for the entries Defaults toEmbeddedMetadataHelper- Specified by:
metadataHelperin interfaceRestStoreConfigurationChildBuilder<RestStoreConfigurationBuilder>
-
path
public RestStoreConfigurationBuilder path(String path)
Description copied from interface:RestStoreConfigurationChildBuilderThe path portion of the RESTful service. Defaults to /- Specified by:
pathin interfaceRestStoreConfigurationChildBuilder<RestStoreConfigurationBuilder>
-
port
public RestStoreConfigurationBuilder port(int port)
Description copied from interface:RestStoreConfigurationChildBuilderThe port to connect to. Defaults to 80- Specified by:
portin interfaceRestStoreConfigurationChildBuilder<RestStoreConfigurationBuilder>
-
appendCacheNameToPath
public RestStoreConfigurationBuilder appendCacheNameToPath(boolean appendCacheNameToPath)
Description copied from interface:RestStoreConfigurationChildBuilderDetermines whether to append the cache name to the path URI. Defaults to false.- Specified by:
appendCacheNameToPathin interfaceRestStoreConfigurationChildBuilder<RestStoreConfigurationBuilder>
-
rawValues
public RestStoreConfigurationBuilder rawValues(boolean rawValues)
Description copied from interface:RestStoreConfigurationChildBuilderReads/writes "raw" values to the REST server instead of marshalling (used by the rolling upgrades feature)- Specified by:
rawValuesin interfaceRestStoreConfigurationChildBuilder<RestStoreConfigurationBuilder>
-
maxContentLength
public RestStoreConfigurationBuilder maxContentLength(int maxContentLength)
Description copied from interface:RestStoreConfigurationChildBuilderSets the maximum content length. Defaults to 10M.- Specified by:
maxContentLengthin interfaceRestStoreConfigurationChildBuilder<RestStoreConfigurationBuilder>
-
create
public RestStoreConfiguration create()
Description copied from interface:BuilderCreate the configuration bean- Specified by:
createin interfaceBuilder<RestStoreConfiguration>- Returns:
-
read
public RestStoreConfigurationBuilder read(RestStoreConfiguration template)
Description copied from interface:BuilderReads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
readin interfaceBuilder<RestStoreConfiguration>- Overrides:
readin classAbstractStoreConfigurationBuilder<RestStoreConfiguration,RestStoreConfigurationBuilder>- Parameters:
template- the configuration from which to "clone" this config if needed.
-
validate
public void validate()
Description copied from interface:BuilderValidate the data in this builder before building the configuration bean- Specified by:
validatein interfaceBuilder<RestStoreConfiguration>- Overrides:
validatein classAbstractStoreConfigurationBuilder<RestStoreConfiguration,RestStoreConfigurationBuilder>
-
template
public ConfigurationChildBuilder template(boolean template)
- Specified by:
templatein interfaceConfigurationChildBuilder
-
simpleCache
public ConfigurationChildBuilder simpleCache(boolean simpleCache)
- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()
- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
clustering
public ClusteringConfigurationBuilder clustering()
- Specified by:
clusteringin interfaceConfigurationChildBuilder
-
customInterceptors
public CustomInterceptorsConfigurationBuilder customInterceptors()
- Specified by:
customInterceptorsin interfaceConfigurationChildBuilder
-
dataContainer
public DataContainerConfigurationBuilder dataContainer()
- Specified by:
dataContainerin interfaceConfigurationChildBuilder
-
deadlockDetection
public DeadlockDetectionConfigurationBuilder deadlockDetection()
- Specified by:
deadlockDetectionin interfaceConfigurationChildBuilder
-
encoding
public EncodingConfigurationBuilder encoding()
- Specified by:
encodingin interfaceConfigurationChildBuilder
-
eviction
public EvictionConfigurationBuilder eviction()
- Specified by:
evictionin interfaceConfigurationChildBuilder
-
expiration
public ExpirationConfigurationBuilder expiration()
- Specified by:
expirationin interfaceConfigurationChildBuilder
-
indexing
public IndexingConfigurationBuilder indexing()
- Specified by:
indexingin interfaceConfigurationChildBuilder
-
invocationBatching
public InvocationBatchingConfigurationBuilder invocationBatching()
- Specified by:
invocationBatchingin interfaceConfigurationChildBuilder
-
jmxStatistics
public JMXStatisticsConfigurationBuilder jmxStatistics()
- Specified by:
jmxStatisticsin interfaceConfigurationChildBuilder
-
persistence
public PersistenceConfigurationBuilder persistence()
- Specified by:
persistencein interfaceConfigurationChildBuilder
-
locking
public LockingConfigurationBuilder locking()
- Specified by:
lockingin interfaceConfigurationChildBuilder
-
security
public SecurityConfigurationBuilder security()
- Specified by:
securityin interfaceConfigurationChildBuilder
-
storeAsBinary
@Deprecated public StoreAsBinaryConfigurationBuilder storeAsBinary()
Deprecated.- Specified by:
storeAsBinaryin interfaceConfigurationChildBuilder
-
transaction
public TransactionConfigurationBuilder transaction()
- Specified by:
transactionin interfaceConfigurationChildBuilder
-
versioning
public VersioningConfigurationBuilder versioning()
- Specified by:
versioningin interfaceConfigurationChildBuilder
-
unsafe
public UnsafeConfigurationBuilder unsafe()
- Specified by:
unsafein interfaceConfigurationChildBuilder
-
sites
public SitesConfigurationBuilder sites()
- Specified by:
sitesin interfaceConfigurationChildBuilder
-
compatibility
@Deprecated public CompatibilityModeConfigurationBuilder compatibility()
Deprecated.- Specified by:
compatibilityin interfaceConfigurationChildBuilder
-
memory
public MemoryConfigurationBuilder memory()
- Specified by:
memoryin interfaceConfigurationChildBuilder
-
getBuilder
protected ConfigurationBuilder getBuilder()
-
build
public Configuration build()
- Specified by:
buildin interfaceConfigurationChildBuilder
-
-