public abstract class AbstractConfigurationChildBuilder extends Object implements ConfigurationChildBuilder
Modifier | Constructor and Description |
---|---|
protected |
AbstractConfigurationChildBuilder(ConfigurationBuilder builder) |
Modifier and Type | Method and Description |
---|---|
ClusterConfigurationBuilder |
addCluster(String clusterName)
Adds a new remote server cluster
|
ConfigurationBuilder |
addContextInitializer(org.infinispan.protostream.SerializationContextInitializer contextInitializer)
Supply a
SerializationContextInitializer implementation to register classes with the ProtoStreamMarshaller 's SerializationContext . |
ConfigurationBuilder |
addContextInitializer(String contextInitializer)
Supply a
SerializationContextInitializer implementation to register classes with the ProtoStreamMarshaller 's SerializationContext . |
ConfigurationBuilder |
addContextInitializers(org.infinispan.protostream.SerializationContextInitializer... contextInitializers)
Convenience method to supply multiple
SerializationContextInitializer implementations. |
ConfigurationBuilder |
addJavaSerialWhiteList(String... regExs)
List of regular expressions for classes that can be deserialized using standard Java deserialization
when reading data that might have been stored with a different endpoint, e.g.
|
ServerConfigurationBuilder |
addServer()
Adds a new remote server
|
ConfigurationBuilder |
addServers(String servers)
Adds a list of remote servers in the form: host1[:port][;host2[:port]]...
|
ExecutorFactoryConfigurationBuilder |
asyncExecutorFactory()
Configuration for the executor service used for asynchronous work on the Transport, including
asynchronous marshalling and Cache 'async operations' such as Cache.putAsync().
|
ConfigurationBuilder |
balancingStrategy(Class<? extends FailoverRequestBalancingStrategy> balancingStrategy)
For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the
servers according to this strategy.
|
ConfigurationBuilder |
balancingStrategy(FailoverRequestBalancingStrategy balancingStrategy)
For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the
servers according to this strategy.
|
ConfigurationBuilder |
balancingStrategy(String balancingStrategy)
For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the
servers according to this strategy.
|
ConfigurationBuilder |
balancingStrategy(Supplier<FailoverRequestBalancingStrategy> balancingStrategyFactory)
For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the
servers according to this strategy.
|
ConfigurationBuilder |
batchSize(int batchSize)
Sets the batch size of internal iterators (ie.
|
Configuration |
build()
Builds a configuration object
|
ConfigurationBuilder |
classLoader(ClassLoader classLoader)
Specifies the
ClassLoader used to find certain resources used by configuration when specified by name
(e.g. |
ConfigurationBuilder |
clientIntelligence(ClientIntelligence clientIntelligence)
Specifies the level of "intelligence" the client should have
|
ConnectionPoolConfigurationBuilder |
connectionPool()
Configures the connection pool
|
ConfigurationBuilder |
connectionTimeout(int connectionTimeout)
This property defines the maximum socket connect timeout in milliseconds before giving up connecting to the
server.
|
ConfigurationBuilder |
consistentHashImpl(int version,
Class<? extends ConsistentHash> consistentHashClass)
Defines the
ConsistentHash implementation to use for the specified version. |
ConfigurationBuilder |
consistentHashImpl(int version,
String consistentHashClass)
Defines the
ConsistentHash implementation to use for the specified version. |
ConfigurationBuilder |
forceReturnValues(boolean forceReturnValues)
Whether or not to implicitly FORCE_RETURN_VALUE for all calls.
|
ConfigurationBuilder |
keySizeEstimate(int keySizeEstimate)
This hint allows sizing of byte buffers when serializing and deserializing keys, to minimize array resizing.
|
ConfigurationBuilder |
marshaller(Class<? extends Marshaller> marshaller)
Allows you to specify a custom
Marshaller implementation to
serialize and deserialize user objects. |
ConfigurationBuilder |
marshaller(Marshaller marshaller)
Allows you to specify an instance of
Marshaller to serialize
and deserialize user objects. |
ConfigurationBuilder |
marshaller(String marshaller)
Allows you to specify a custom
Marshaller implementation to
serialize and deserialize user objects. |
ConfigurationBuilder |
maxRetries(int retriesPerServer)
It sets the maximum number of retries for each request.
|
ConfigurationBuilder |
protocolVersion(String protocolVersion)
Deprecated.
Use
version(ProtocolVersion) instead. |
RemoteCacheConfigurationBuilder |
remoteCache(String name)
Per-cache configuration
|
SecurityConfigurationBuilder |
security()
Security Configuration
|
ConfigurationBuilder |
socketTimeout(int socketTimeout)
This property defines the maximum socket read timeout in milliseconds before giving up waiting
for bytes from the server.
|
StatisticsConfigurationBuilder |
statistics()
Configures client-side statistics.
|
ConfigurationBuilder |
tcpKeepAlive(boolean tcpKeepAlive)
Affects TCP KEEPALIVE on the TCP stack.
|
ConfigurationBuilder |
tcpNoDelay(boolean tcpNoDelay)
Affects TCP NODELAY on the TCP stack.
|
TransactionConfigurationBuilder |
transaction()
Transaction configuration
|
ConfigurationBuilder |
uri(String uri)
Configures this builder using the specified URI.
|
ConfigurationBuilder |
uri(URI uri)
Configures this builder using the specified URI.
|
ConfigurationBuilder |
valueSizeEstimate(int valueSizeEstimate)
This hint allows sizing of byte buffers when serializing and deserializing values, to minimize
array resizing.
|
ConfigurationBuilder |
version(ProtocolVersion protocolVersion)
This property defines the protocol version that this client should use.
|
ConfigurationBuilder |
withProperties(Properties properties)
Configures this builder using the specified properties.
|
protected AbstractConfigurationChildBuilder(ConfigurationBuilder builder)
public ServerConfigurationBuilder addServer()
ConfigurationChildBuilder
addServer
in interface ConfigurationChildBuilder
public ClusterConfigurationBuilder addCluster(String clusterName)
ConfigurationChildBuilder
addCluster
in interface ConfigurationChildBuilder
public ConfigurationBuilder addServers(String servers)
ConfigurationChildBuilder
addServers
in interface ConfigurationChildBuilder
public ExecutorFactoryConfigurationBuilder asyncExecutorFactory()
ConfigurationChildBuilder
asyncExecutorFactory
in interface ConfigurationChildBuilder
public ConfigurationBuilder balancingStrategy(String balancingStrategy)
ConfigurationChildBuilder
balancingStrategy
in interface ConfigurationChildBuilder
public ConfigurationBuilder balancingStrategy(Class<? extends FailoverRequestBalancingStrategy> balancingStrategy)
ConfigurationChildBuilder
balancingStrategy
in interface ConfigurationChildBuilder
public ConfigurationBuilder balancingStrategy(FailoverRequestBalancingStrategy balancingStrategy)
ConfigurationChildBuilder
balancingStrategy
in interface ConfigurationChildBuilder
public ConfigurationBuilder balancingStrategy(Supplier<FailoverRequestBalancingStrategy> balancingStrategyFactory)
ConfigurationChildBuilder
balancingStrategy
in interface ConfigurationChildBuilder
public ConfigurationBuilder classLoader(ClassLoader classLoader)
ConfigurationChildBuilder
ClassLoader
used to find certain resources used by configuration when specified by name
(e.g. certificate stores). Infinispan will search through the classloader which loaded this class, the system
classloader, the TCCL and the OSGi classloader (if applicable).classLoader
in interface ConfigurationChildBuilder
public ConfigurationBuilder clientIntelligence(ClientIntelligence clientIntelligence)
ConfigurationChildBuilder
clientIntelligence
in interface ConfigurationChildBuilder
public ConnectionPoolConfigurationBuilder connectionPool()
ConfigurationChildBuilder
connectionPool
in interface ConfigurationChildBuilder
public ConfigurationBuilder connectionTimeout(int connectionTimeout)
ConfigurationChildBuilder
connectionTimeout
in interface ConfigurationChildBuilder
public ConfigurationBuilder consistentHashImpl(int version, Class<? extends ConsistentHash> consistentHashClass)
ConfigurationChildBuilder
ConsistentHash
implementation to use for the specified version. By default,
ConsistentHashV2
is used for version 1 and ConsistentHashV2
is used for version 2.consistentHashImpl
in interface ConfigurationChildBuilder
public ConfigurationBuilder consistentHashImpl(int version, String consistentHashClass)
ConfigurationChildBuilder
ConsistentHash
implementation to use for the specified version. By default,
ConsistentHashV2
is used for version 1 and ConsistentHashV2
is used for version 2.consistentHashImpl
in interface ConfigurationChildBuilder
public ConfigurationBuilder forceReturnValues(boolean forceReturnValues)
ConfigurationChildBuilder
forceReturnValues
in interface ConfigurationChildBuilder
public ConfigurationBuilder keySizeEstimate(int keySizeEstimate)
ConfigurationChildBuilder
keySizeEstimate
in interface ConfigurationChildBuilder
public ConfigurationBuilder marshaller(String marshaller)
ConfigurationChildBuilder
Marshaller
implementation to
serialize and deserialize user objects. This method is mutually exclusive with ConfigurationChildBuilder.marshaller(Marshaller)
.marshaller
in interface ConfigurationChildBuilder
public ConfigurationBuilder marshaller(Class<? extends Marshaller> marshaller)
ConfigurationChildBuilder
Marshaller
implementation to
serialize and deserialize user objects. This method is mutually exclusive with ConfigurationChildBuilder.marshaller(Marshaller)
.marshaller
in interface ConfigurationChildBuilder
public ConfigurationBuilder marshaller(Marshaller marshaller)
ConfigurationChildBuilder
Marshaller
to serialize
and deserialize user objects. This method is mutually exclusive with ConfigurationChildBuilder.marshaller(Class)
.marshaller
in interface ConfigurationChildBuilder
public ConfigurationBuilder addContextInitializer(String contextInitializer)
ConfigurationChildBuilder
SerializationContextInitializer
implementation to register classes with the ProtoStreamMarshaller
's SerializationContext
.addContextInitializer
in interface ConfigurationChildBuilder
public ConfigurationBuilder addContextInitializer(org.infinispan.protostream.SerializationContextInitializer contextInitializer)
ConfigurationChildBuilder
SerializationContextInitializer
implementation to register classes with the ProtoStreamMarshaller
's SerializationContext
.addContextInitializer
in interface ConfigurationChildBuilder
public ConfigurationBuilder addContextInitializers(org.infinispan.protostream.SerializationContextInitializer... contextInitializers)
ConfigurationChildBuilder
SerializationContextInitializer
implementations.addContextInitializers
in interface ConfigurationChildBuilder
ConfigurationChildBuilder.addContextInitializer(SerializationContextInitializer).
@Deprecated public ConfigurationBuilder protocolVersion(String protocolVersion)
version(ProtocolVersion)
instead.ConfigurationChildBuilder
protocolVersion
in interface ConfigurationChildBuilder
public ConfigurationBuilder version(ProtocolVersion protocolVersion)
ConfigurationChildBuilder
version
in interface ConfigurationChildBuilder
public ConfigurationBuilder socketTimeout(int socketTimeout)
ConfigurationChildBuilder
socketTimeout
in interface ConfigurationChildBuilder
public SecurityConfigurationBuilder security()
ConfigurationChildBuilder
security
in interface ConfigurationChildBuilder
public ConfigurationBuilder tcpNoDelay(boolean tcpNoDelay)
ConfigurationChildBuilder
tcpNoDelay
in interface ConfigurationChildBuilder
public ConfigurationBuilder tcpKeepAlive(boolean tcpKeepAlive)
ConfigurationChildBuilder
tcpKeepAlive
in interface ConfigurationChildBuilder
public ConfigurationBuilder valueSizeEstimate(int valueSizeEstimate)
ConfigurationChildBuilder
valueSizeEstimate
in interface ConfigurationChildBuilder
public ConfigurationBuilder maxRetries(int retriesPerServer)
ConfigurationChildBuilder
maxRetries
in interface ConfigurationChildBuilder
public ConfigurationBuilder addJavaSerialWhiteList(String... regExs)
ConfigurationChildBuilder
addJavaSerialWhiteList
in interface ConfigurationChildBuilder
public ConfigurationBuilder batchSize(int batchSize)
ConfigurationChildBuilder
keySet().iterator()
. Defaults to 10_000batchSize
in interface ConfigurationChildBuilder
batchSize
- the batch size to setpublic StatisticsConfigurationBuilder statistics()
ConfigurationChildBuilder
statistics
in interface ConfigurationChildBuilder
public TransactionConfigurationBuilder transaction()
ConfigurationChildBuilder
transaction
in interface ConfigurationChildBuilder
public RemoteCacheConfigurationBuilder remoteCache(String name)
ConfigurationChildBuilder
remoteCache
in interface ConfigurationChildBuilder
name
- the name of the cache to which specific configuration should be applied. You may use wildcard globbing (e.g. cache-*
) which will apply to any cache that matches.RemoteCacheConfigurationBuilder
for the cachepublic ConfigurationBuilder uri(URI uri)
ConfigurationChildBuilder
uri
in interface ConfigurationChildBuilder
public ConfigurationBuilder uri(String uri)
ConfigurationChildBuilder
uri
in interface ConfigurationChildBuilder
public ConfigurationBuilder withProperties(Properties properties)
ConfigurationChildBuilder
ConfigurationBuilder
for a list.withProperties
in interface ConfigurationChildBuilder
public Configuration build()
ConfigurationChildBuilder
build
in interface ConfigurationChildBuilder
Copyright © 2021 JBoss by Red Hat. All rights reserved.