Class AbstractRemoteStoreConfigurationChildBuilder<S>
java.lang.Object
org.infinispan.configuration.cache.AbstractPersistenceConfigurationChildBuilder
org.infinispan.configuration.cache.AbstractStoreConfigurationChildBuilder<S>
org.infinispan.persistence.remote.configuration.AbstractRemoteStoreConfigurationChildBuilder<S>
- All Implemented Interfaces:
ConfigurationChildBuilder
,PersistenceConfigurationChildBuilder
,StoreConfigurationChildBuilder<S>
,RemoteStoreConfigurationChildBuilder<S>
- Direct Known Subclasses:
AbstractSecurityConfigurationChildBuilder
,ConnectionPoolConfigurationBuilder
,ExecutorFactoryConfigurationBuilder
,RemoteServerConfigurationBuilder
,SecurityConfigurationBuilder
public abstract class AbstractRemoteStoreConfigurationChildBuilder<S>
extends AbstractStoreConfigurationChildBuilder<S>
implements RemoteStoreConfigurationChildBuilder<S>
AbstractRemoteStoreConfigurationChildBuilder.
- Since:
- 5.2
- Author:
- Tristan Tarrant
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AttributeSet
protected final RemoteStoreConfigurationBuilder
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractRemoteStoreConfigurationChildBuilder
(RemoteStoreConfigurationBuilder builder, AttributeSet attributes) -
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.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 interceptorsencoding()
forceReturnValues
(boolean forceReturnValues) Whether or not to implicitly FORCE_RETURN_VALUE for all calls.protected ConfigurationBuilder
hotRodWrapping
(boolean hotRodWrapping) Configures 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.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 customMarshaller
implementation to serialize and deserialize user objects.marshaller
(String marshaller) Allows you to specify a customMarshaller
implementation 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) Normally theRemoteStore
stores values wrapped inInternalCacheEntry
.remoteCacheName
(String remoteCacheName) The name of the remote cache in the remote infinispan cluster, to which to connect to.Configures connection securitysecurity()
boolean
simpleCache
(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()
void
validate
(GlobalConfiguration globalConfig) 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.0Methods inherited from class org.infinispan.configuration.cache.AbstractStoreConfigurationChildBuilder
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, purgeOnStartup, segmented, shared, transactional, withProperties, writeOnly
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
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, transactional, withProperties, writeOnly
-
Field Details
-
builder
-
attributes
-
-
Constructor Details
-
AbstractRemoteStoreConfigurationChildBuilder
protected AbstractRemoteStoreConfigurationChildBuilder(RemoteStoreConfigurationBuilder builder, AttributeSet attributes)
-
-
Method Details
-
addServer
Description copied from interface:RemoteStoreConfigurationChildBuilder
Adds a new remote server- Specified by:
addServer
in interfaceRemoteStoreConfigurationChildBuilder<S>
-
asyncExecutorFactory
Description copied from interface:RemoteStoreConfigurationChildBuilder
Configuration for the executor service used for asynchronous work on the Transport, including asynchronous marshalling and Cache 'async operations' such as Cache.putAsync().- Specified by:
asyncExecutorFactory
in interfaceRemoteStoreConfigurationChildBuilder<S>
-
balancingStrategy
Description copied from interface:RemoteStoreConfigurationChildBuilder
For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the servers according to this strategy.- Specified by:
balancingStrategy
in interfaceRemoteStoreConfigurationChildBuilder<S>
-
connectionPool
Description copied from interface:RemoteStoreConfigurationChildBuilder
Configures the connection pool- Specified by:
connectionPool
in interfaceRemoteStoreConfigurationChildBuilder<S>
-
connectionTimeout
Description copied from interface:RemoteStoreConfigurationChildBuilder
This property defines the maximum socket connect timeout before giving up connecting to the server.- Specified by:
connectionTimeout
in interfaceRemoteStoreConfigurationChildBuilder<S>
-
forceReturnValues
Description copied from interface:RemoteStoreConfigurationChildBuilder
Whether or not to implicitly FORCE_RETURN_VALUE for all calls.- Specified by:
forceReturnValues
in interfaceRemoteStoreConfigurationChildBuilder<S>
-
hotRodWrapping
Description copied from interface:RemoteStoreConfigurationChildBuilder
Configures 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:
hotRodWrapping
in interfaceRemoteStoreConfigurationChildBuilder<S>
-
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:
keySizeEstimate
in interfaceRemoteStoreConfigurationChildBuilder<S>
-
marshaller
Description copied from interface:RemoteStoreConfigurationChildBuilder
Allows you to specify a customMarshaller
implementation to serialize and deserialize user objects.- Specified by:
marshaller
in interfaceRemoteStoreConfigurationChildBuilder<S>
-
marshaller
Description copied from interface:RemoteStoreConfigurationChildBuilder
Allows you to specify a customMarshaller
implementation to serialize and deserialize user objects.- Specified by:
marshaller
in interfaceRemoteStoreConfigurationChildBuilder<S>
-
protocolVersion
Description copied from interface:RemoteStoreConfigurationChildBuilder
This property defines the protocol version that this client should use. Defaults toProtocolVersion.DEFAULT_PROTOCOL_VERSION
- Specified by:
protocolVersion
in interfaceRemoteStoreConfigurationChildBuilder<S>
-
rawValues
Description copied from interface:RemoteStoreConfigurationChildBuilder
Normally theRemoteStore
stores values wrapped inInternalCacheEntry
. Setting this property to true causes the raw values to be stored instead for interoperability with direct access byRemoteCacheManager
s- Specified by:
rawValues
in interfaceRemoteStoreConfigurationChildBuilder<S>
-
remoteCacheName
Description copied from interface:RemoteStoreConfigurationChildBuilder
The 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:
remoteCacheName
in interfaceRemoteStoreConfigurationChildBuilder<S>
-
remoteSecurity
Description copied from interface:RemoteStoreConfigurationChildBuilder
Configures connection security- Specified by:
remoteSecurity
in interfaceRemoteStoreConfigurationChildBuilder<S>
-
socketTimeout
Description copied from interface:RemoteStoreConfigurationChildBuilder
This 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:
socketTimeout
in interfaceRemoteStoreConfigurationChildBuilder<S>
-
tcpNoDelay
Description copied from interface:RemoteStoreConfigurationChildBuilder
Affects TCP NODELAY on the TCP stack. Defaults to enabled- Specified by:
tcpNoDelay
in interfaceRemoteStoreConfigurationChildBuilder<S>
-
transportFactory
Description copied from interface:RemoteStoreConfigurationChildBuilder
Controls which transport to use. Currently only the TcpTransport is supported.- Specified by:
transportFactory
in interfaceRemoteStoreConfigurationChildBuilder<S>
-
transportFactory
public RemoteStoreConfigurationBuilder transportFactory(Class<? extends org.infinispan.client.hotrod.impl.transport.netty.ChannelFactory> transportFactory) Description copied from interface:RemoteStoreConfigurationChildBuilder
Controls which transport to use. Currently only the TcpTransport is supported.- Specified by:
transportFactory
in interfaceRemoteStoreConfigurationChildBuilder<S>
-
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:
valueSizeEstimate
in interfaceRemoteStoreConfigurationChildBuilder<S>
-
validate
- Specified by:
validate
in interfaceConfigurationChildBuilder
-
getRemoteStoreBuilder
-
template
- Specified by:
template
in interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clustering
in 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:
customInterceptors
in interfaceConfigurationChildBuilder
-
encoding
- Specified by:
encoding
in interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expiration
in interfaceConfigurationChildBuilder
-
query
- Specified by:
query
in interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexing
in interfaceConfigurationChildBuilder
-
invocationBatching
- Specified by:
invocationBatching
in interfaceConfigurationChildBuilder
-
statistics
- Specified by:
statistics
in interfaceConfigurationChildBuilder
-
persistence
- Specified by:
persistence
in interfaceConfigurationChildBuilder
-
locking
- Specified by:
locking
in interfaceConfigurationChildBuilder
-
security
- Specified by:
security
in interfaceConfigurationChildBuilder
-
transaction
- Specified by:
transaction
in interfaceConfigurationChildBuilder
-
unsafe
- Specified by:
unsafe
in interfaceConfigurationChildBuilder
-
sites
- Specified by:
sites
in interfaceConfigurationChildBuilder
-
memory
- Specified by:
memory
in interfaceConfigurationChildBuilder
-
getBuilder
-
build
- Specified by:
build
in interfaceConfigurationChildBuilder
-