Class RemoteStoreConfigurationBuilder
java.lang.Object
org.infinispan.configuration.cache.AbstractPersistenceConfigurationChildBuilder
org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder<RemoteStoreConfiguration,RemoteStoreConfigurationBuilder>
org.infinispan.persistence.remote.configuration.RemoteStoreConfigurationBuilder
- All Implemented Interfaces:
Builder<RemoteStoreConfiguration>,Self<RemoteStoreConfigurationBuilder>,ConfigurationChildBuilder,PersistenceConfigurationChildBuilder,StoreConfigurationBuilder<RemoteStoreConfiguration,,RemoteStoreConfigurationBuilder> StoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>,RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
public class RemoteStoreConfigurationBuilder
extends AbstractStoreConfigurationBuilder<RemoteStoreConfiguration,RemoteStoreConfigurationBuilder>
implements RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
RemoteStoreConfigurationBuilder. Configures a
RemoteStore- Since:
- 5.2
- Author:
- Tristan Tarrant
-
Field Summary
FieldsFields inherited from class org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder
async, attributes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a new remote serverConfiguration for the executor service used for asynchronous work on the Transport, including asynchronous marshalling and Cache 'async operations' such as Cache.putAsync().balancingStrategy(String balancingStrategy) For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the servers according to this strategy.build()Configures the connection poolconnectionTimeout(long connectionTimeout) This property defines the maximum socket connect timeout before giving up connecting to the server.create()Create the configuration beanDeprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptorsencoding()forceReturnValues(boolean forceReturnValues) Whether or not to implicitly FORCE_RETURN_VALUE for all calls.protected ConfigurationBuilderhotRodWrapping(boolean hotRodWrapping) Deprecated, for removal: This API element is subject to removal in a future version.indexing()keySizeEstimate(int keySizeEstimate) Deprecated, for removal: This API element is subject to removal in a future version.Since 12.0, does nothing and will be removed in 15.0locking()marshaller(Class<? extends Marshaller> marshaller) Allows you to specify a customMarshallerimplementation to serialize and deserialize user objects.marshaller(String marshaller) Allows you to specify a customMarshallerimplementation to serialize and deserialize user objects.memory()protocolVersion(ProtocolVersion protocolVersion) This property defines the protocol version that this client should use.query()rawValues(boolean rawValues) Deprecated, for removal: This API element is subject to removal in a future version.read(RemoteStoreConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.remoteCacheName(String remoteCacheName) The name of the remote cache in the remote infinispan cluster, to which to connect to.Configures connection securitysecurity()self()booleansimpleCache(boolean simpleCache) sites()socketTimeout(long socketTimeout) This property defines the maximum socket read timeout in milliseconds before giving up waiting for bytes from the server.tcpNoDelay(boolean tcpNoDelay) Affects TCP NODELAY on the TCP stack.template(boolean template) transportFactory(Class<? extends org.infinispan.client.hotrod.impl.transport.netty.ChannelFactory> transportFactory) Controls which transport to use.transportFactory(String transportFactory) Controls which transport to use.unsafe()voidvalidate()Validate the data in this builder before building the configuration beanvalueSizeEstimate(int valueSizeEstimate) Deprecated, for removal: This API element is subject to removal in a future version.Since 12.0, does nothing and will be removed in 15.0withProperties(Properties props) Properties passed to the cache store or loaderMethods inherited from class org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, properties, purgeOnStartup, segmented, shared, toString, transactional, validate, validate, writeOnlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
build, clustering, customInterceptors, encoding, expiration, indexing, invocationBatching, jmxStatistics, locking, memory, query, security, simpleCache, simpleCache, sites, statistics, template, transaction, unsafe, validateMethods inherited from interface org.infinispan.configuration.cache.PersistenceConfigurationChildBuilder
persistenceMethods inherited from interface org.infinispan.configuration.cache.StoreConfigurationChildBuilder
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, purgeOnStartup, segmented, shared, transactional, writeOnly
-
Field Details
-
builder
-
-
Constructor Details
-
RemoteStoreConfigurationBuilder
-
-
Method Details
-
self
- Specified by:
selfin interfaceSelf<RemoteStoreConfigurationBuilder>
-
attributes
- Specified by:
attributesin interfaceBuilder<RemoteStoreConfiguration>- Overrides:
attributesin classAbstractStoreConfigurationBuilder<RemoteStoreConfiguration,RemoteStoreConfigurationBuilder>
-
asyncExecutorFactory
Description copied from interface:RemoteStoreConfigurationChildBuilderConfiguration for the executor service used for asynchronous work on the Transport, including asynchronous marshalling and Cache 'async operations' such as Cache.putAsync().- Specified by:
asyncExecutorFactoryin interfaceRemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
-
balancingStrategy
Description copied from interface:RemoteStoreConfigurationChildBuilderFor replicated (vs distributed) Hot Rod server clusters, the client balances requests to the servers according to this strategy.- Specified by:
balancingStrategyin interfaceRemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
-
connectionPool
Description copied from interface:RemoteStoreConfigurationChildBuilderConfigures the connection pool- Specified by:
connectionPoolin interfaceRemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
-
connectionTimeout
Description copied from interface:RemoteStoreConfigurationChildBuilderThis property defines the maximum socket connect timeout before giving up connecting to the server.- Specified by:
connectionTimeoutin interfaceRemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
-
forceReturnValues
Description copied from interface:RemoteStoreConfigurationChildBuilderWhether or not to implicitly FORCE_RETURN_VALUE for all calls.- Specified by:
forceReturnValuesin interfaceRemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
-
hotRodWrapping
@Deprecated(forRemoval=true) public RemoteStoreConfigurationBuilder hotRodWrapping(boolean hotRodWrapping) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:RemoteStoreConfigurationChildBuilderConfigures this RemoteStore so that it enables all settings needed to create entries to be served by a HotRod endpoint, for example when performing rolling upgrades.- Specified by:
hotRodWrappingin interfaceRemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
-
keySizeEstimate
@Deprecated(forRemoval=true) public RemoteStoreConfigurationBuilder keySizeEstimate(int keySizeEstimate) Deprecated, for removal: This API element is subject to removal in a future version.Since 12.0, does nothing and will be removed in 15.0- Specified by:
keySizeEstimatein interfaceRemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
-
marshaller
Description copied from interface:RemoteStoreConfigurationChildBuilderAllows you to specify a customMarshallerimplementation to serialize and deserialize user objects.- Specified by:
marshallerin interfaceRemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
-
marshaller
Description copied from interface:RemoteStoreConfigurationChildBuilderAllows you to specify a customMarshallerimplementation to serialize and deserialize user objects.- Specified by:
marshallerin interfaceRemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
-
protocolVersion
Description copied from interface:RemoteStoreConfigurationChildBuilderThis property defines the protocol version that this client should use. Defaults toProtocolVersion.DEFAULT_PROTOCOL_VERSION- Specified by:
protocolVersionin interfaceRemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
-
rawValues
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:RemoteStoreConfigurationChildBuilderNormally theRemoteStorestores values wrapped inInternalCacheEntry. Setting this property to true causes the raw values to be stored instead for interoperability with direct access byRemoteCacheManagers- Specified by:
rawValuesin interfaceRemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
-
remoteCacheName
Description copied from interface:RemoteStoreConfigurationChildBuilderThe name of the remote cache in the remote infinispan cluster, to which to connect to. If unspecified, the default cache will be used- Specified by:
remoteCacheNamein interfaceRemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
-
uri
-
remoteSecurity
Description copied from interface:RemoteStoreConfigurationChildBuilderConfigures connection security- Specified by:
remoteSecurityin interfaceRemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
-
socketTimeout
Description copied from interface:RemoteStoreConfigurationChildBuilderThis property defines the maximum socket read timeout in milliseconds before giving up waiting for bytes from the server. Defaults to 60000 (1 minute)- Specified by:
socketTimeoutin interfaceRemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
-
tcpNoDelay
Description copied from interface:RemoteStoreConfigurationChildBuilderAffects TCP NODELAY on the TCP stack. Defaults to enabled- Specified by:
tcpNoDelayin interfaceRemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
-
transportFactory
Description copied from interface:RemoteStoreConfigurationChildBuilderControls which transport to use. Currently only the TcpTransport is supported.- Specified by:
transportFactoryin interfaceRemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
-
transportFactory
public RemoteStoreConfigurationBuilder transportFactory(Class<? extends org.infinispan.client.hotrod.impl.transport.netty.ChannelFactory> transportFactory) Description copied from interface:RemoteStoreConfigurationChildBuilderControls which transport to use. Currently only the TcpTransport is supported.- Specified by:
transportFactoryin interfaceRemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
-
valueSizeEstimate
@Deprecated(forRemoval=true) public RemoteStoreConfigurationBuilder valueSizeEstimate(int valueSizeEstimate) Deprecated, for removal: This API element is subject to removal in a future version.Since 12.0, does nothing and will be removed in 15.0- Specified by:
valueSizeEstimatein interfaceRemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
-
addServer
Description copied from interface:RemoteStoreConfigurationChildBuilderAdds a new remote server- Specified by:
addServerin interfaceRemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
-
create
Description copied from interface:BuilderCreate the configuration bean- Specified by:
createin interfaceBuilder<RemoteStoreConfiguration>- Returns:
-
read
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<RemoteStoreConfiguration>- Overrides:
readin classAbstractStoreConfigurationBuilder<RemoteStoreConfiguration,RemoteStoreConfigurationBuilder> - Parameters:
template- the configuration from which to "clone" this config if needed.combine- the way attributes and children of this instance and the template should be combined.
-
withProperties
Description copied from class:AbstractStoreConfigurationBuilderProperties passed to the cache store or loader- Specified by:
withPropertiesin interfaceStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>- Overrides:
withPropertiesin classAbstractStoreConfigurationBuilder<RemoteStoreConfiguration,RemoteStoreConfigurationBuilder>
-
validate
public void validate()Description copied from interface:BuilderValidate the data in this builder before building the configuration bean- Specified by:
validatein interfaceBuilder<RemoteStoreConfiguration>- Overrides:
validatein classAbstractStoreConfigurationBuilder<RemoteStoreConfiguration,RemoteStoreConfigurationBuilder>
-
template
- Specified by:
templatein interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clusteringin interfaceConfigurationChildBuilder
-
customInterceptors
Deprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptors- Specified by:
customInterceptorsin interfaceConfigurationChildBuilder
-
encoding
- Specified by:
encodingin interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expirationin interfaceConfigurationChildBuilder
-
query
- Specified by:
queryin interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexingin interfaceConfigurationChildBuilder
-
invocationBatching
- Specified by:
invocationBatchingin interfaceConfigurationChildBuilder
-
statistics
- Specified by:
statisticsin interfaceConfigurationChildBuilder
-
persistence
- Specified by:
persistencein interfaceConfigurationChildBuilder
-
locking
- Specified by:
lockingin interfaceConfigurationChildBuilder
-
security
- Specified by:
securityin interfaceConfigurationChildBuilder
-
transaction
- Specified by:
transactionin interfaceConfigurationChildBuilder
-
unsafe
- Specified by:
unsafein interfaceConfigurationChildBuilder
-
sites
- Specified by:
sitesin interfaceConfigurationChildBuilder
-
memory
- Specified by:
memoryin interfaceConfigurationChildBuilder
-
getBuilder
-
build
- Specified by:
buildin interfaceConfigurationChildBuilder
-