public class RemoteStoreConfigurationBuilder extends AbstractStoreConfigurationBuilder<RemoteStoreConfiguration,RemoteStoreConfigurationBuilder> implements RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
RemoteStore
Modifier and Type | Field and Description |
---|---|
protected ConfigurationBuilder |
builder |
async, attributes, fetchPersistentState, ignoreModifications, preload, properties, purgeOnStartup, shared, singletonStore
Constructor and Description |
---|
RemoteStoreConfigurationBuilder(PersistenceConfigurationBuilder builder) |
Modifier and Type | Method and Description |
---|---|
RemoteServerConfigurationBuilder |
addServer()
Adds a new remote server
|
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().
|
RemoteStoreConfigurationBuilder |
balancingStrategy(String balancingStrategy)
For replicated (vs distributed) Hot Rod server clusters, the client balances requests to the
servers according to this strategy.
|
Configuration |
build() |
ClusteringConfigurationBuilder |
clustering() |
CompatibilityModeConfigurationBuilder |
compatibility() |
ConnectionPoolConfigurationBuilder |
connectionPool()
Configures the connection pool
|
RemoteStoreConfigurationBuilder |
connectionTimeout(long connectionTimeout)
This property defines the maximum socket connect timeout before giving up connecting to the
server.
|
RemoteStoreConfiguration |
create()
Create the configuration bean
|
CustomInterceptorsConfigurationBuilder |
customInterceptors() |
DataContainerConfigurationBuilder |
dataContainer() |
DeadlockDetectionConfigurationBuilder |
deadlockDetection() |
EncodingConfigurationBuilder |
encoding() |
EvictionConfigurationBuilder |
eviction() |
ExpirationConfigurationBuilder |
expiration() |
RemoteStoreConfigurationBuilder |
forceReturnValues(boolean forceReturnValues)
Whether or not to implicitly FORCE_RETURN_VALUE for all calls.
|
protected ConfigurationBuilder |
getBuilder() |
RemoteStoreConfigurationBuilder |
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.
|
IndexingConfigurationBuilder |
indexing() |
InvocationBatchingConfigurationBuilder |
invocationBatching() |
JMXStatisticsConfigurationBuilder |
jmxStatistics() |
RemoteStoreConfigurationBuilder |
keySizeEstimate(int keySizeEstimate)
The class name of the driver used for connecting to the database.
|
LockingConfigurationBuilder |
locking() |
RemoteStoreConfigurationBuilder |
marshaller(Class<? extends Marshaller> marshaller)
Allows you to specify a custom
Marshaller implementation to
serialize and deserialize user objects. |
RemoteStoreConfigurationBuilder |
marshaller(String marshaller)
Allows you to specify a custom
Marshaller implementation to
serialize and deserialize user objects. |
MemoryConfigurationBuilder |
memory() |
PersistenceConfigurationBuilder |
persistence() |
RemoteStoreConfigurationBuilder |
protocolVersion(org.infinispan.client.hotrod.ProtocolVersion protocolVersion)
This property defines the protocol version that this client should use.
|
RemoteStoreConfigurationBuilder |
protocolVersion(String protocolVersion)
This property defines the protocol version that this client should use.
|
RemoteStoreConfigurationBuilder |
rawValues(boolean rawValues)
Normally the
RemoteStore stores values wrapped in InternalCacheEntry . |
RemoteStoreConfigurationBuilder |
read(RemoteStoreConfiguration template)
Reads the configuration from an already created configuration bean into this builder.
|
RemoteStoreConfigurationBuilder |
remoteCacheName(String remoteCacheName)
The name of the remote cache in the remote infinispan cluster, to which to connect to.
|
SecurityConfigurationBuilder |
remoteSecurity()
Configures connection security
|
SecurityConfigurationBuilder |
security() |
RemoteStoreConfigurationBuilder |
self() |
boolean |
simpleCache() |
ConfigurationChildBuilder |
simpleCache(boolean simpleCache) |
SitesConfigurationBuilder |
sites() |
RemoteStoreConfigurationBuilder |
socketTimeout(long socketTimeout)
This property defines the maximum socket read timeout in milliseconds before giving up waiting
for bytes from the server.
|
StoreAsBinaryConfigurationBuilder |
storeAsBinary()
Deprecated.
|
RemoteStoreConfigurationBuilder |
tcpNoDelay(boolean tcpNoDelay)
Affects TCP NODELAY on the TCP stack.
|
ConfigurationChildBuilder |
template(boolean template) |
TransactionConfigurationBuilder |
transaction() |
RemoteStoreConfigurationBuilder |
transportFactory(Class<? extends org.infinispan.client.hotrod.impl.transport.TransportFactory> transportFactory)
Controls which transport to use.
|
RemoteStoreConfigurationBuilder |
transportFactory(String transportFactory)
Controls which transport to use.
|
UnsafeConfigurationBuilder |
unsafe() |
void |
validate()
Validate the data in this builder before building the configuration bean
|
RemoteStoreConfigurationBuilder |
valueSizeEstimate(int valueSizeEstimate)
This hint allows sizing of byte buffers when serializing and deserializing values, to minimize
array resizing.
|
VersioningConfigurationBuilder |
versioning() |
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, properties, purgeOnStartup, shared, singleton, toString, transactional, validate, validate, withProperties
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, purgeOnStartup, shared, singleton, transactional, withProperties
build, clustering, compatibility, customInterceptors, dataContainer, deadlockDetection, encoding, eviction, expiration, indexing, invocationBatching, jmxStatistics, locking, memory, persistence, security, simpleCache, simpleCache, sites, storeAsBinary, template, transaction, unsafe, validate, versioning
persistence
protected final ConfigurationBuilder builder
public RemoteStoreConfigurationBuilder(PersistenceConfigurationBuilder builder)
public RemoteStoreConfigurationBuilder self()
self
in interface Self<RemoteStoreConfigurationBuilder>
public ExecutorFactoryConfigurationBuilder asyncExecutorFactory()
RemoteStoreConfigurationChildBuilder
asyncExecutorFactory
in interface RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
public RemoteStoreConfigurationBuilder balancingStrategy(String balancingStrategy)
RemoteStoreConfigurationChildBuilder
balancingStrategy
in interface RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
public ConnectionPoolConfigurationBuilder connectionPool()
RemoteStoreConfigurationChildBuilder
connectionPool
in interface RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
public RemoteStoreConfigurationBuilder connectionTimeout(long connectionTimeout)
RemoteStoreConfigurationChildBuilder
connectionTimeout
in interface RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
public RemoteStoreConfigurationBuilder forceReturnValues(boolean forceReturnValues)
RemoteStoreConfigurationChildBuilder
forceReturnValues
in interface RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
public RemoteStoreConfigurationBuilder hotRodWrapping(boolean hotRodWrapping)
RemoteStoreConfigurationChildBuilder
hotRodWrapping
in interface RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
public RemoteStoreConfigurationBuilder keySizeEstimate(int keySizeEstimate)
RemoteStoreConfigurationChildBuilder
keySizeEstimate
in interface RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
public RemoteStoreConfigurationBuilder marshaller(String marshaller)
RemoteStoreConfigurationChildBuilder
Marshaller
implementation to
serialize and deserialize user objects.marshaller
in interface RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
public RemoteStoreConfigurationBuilder marshaller(Class<? extends Marshaller> marshaller)
RemoteStoreConfigurationChildBuilder
Marshaller
implementation to
serialize and deserialize user objects.marshaller
in interface RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
public RemoteStoreConfigurationBuilder protocolVersion(String protocolVersion)
RemoteStoreConfigurationChildBuilder
ProtocolVersion.DEFAULT_PROTOCOL_VERSION
protocolVersion
in interface RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
public RemoteStoreConfigurationBuilder protocolVersion(org.infinispan.client.hotrod.ProtocolVersion protocolVersion)
RemoteStoreConfigurationChildBuilder
ProtocolVersion.DEFAULT_PROTOCOL_VERSION
protocolVersion
in interface RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
public RemoteStoreConfigurationBuilder rawValues(boolean rawValues)
RemoteStoreConfigurationChildBuilder
RemoteStore
stores values wrapped in InternalCacheEntry
. Setting
this property to true causes the raw values to be stored instead for interoperability with direct
access by RemoteCacheManager
srawValues
in interface RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
public RemoteStoreConfigurationBuilder remoteCacheName(String remoteCacheName)
RemoteStoreConfigurationChildBuilder
remoteCacheName
in interface RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
public SecurityConfigurationBuilder remoteSecurity()
RemoteStoreConfigurationChildBuilder
remoteSecurity
in interface RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
public RemoteStoreConfigurationBuilder socketTimeout(long socketTimeout)
RemoteStoreConfigurationChildBuilder
socketTimeout
in interface RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
public RemoteStoreConfigurationBuilder tcpNoDelay(boolean tcpNoDelay)
RemoteStoreConfigurationChildBuilder
tcpNoDelay
in interface RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
public RemoteStoreConfigurationBuilder transportFactory(String transportFactory)
RemoteStoreConfigurationChildBuilder
transportFactory
in interface RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
public RemoteStoreConfigurationBuilder transportFactory(Class<? extends org.infinispan.client.hotrod.impl.transport.TransportFactory> transportFactory)
RemoteStoreConfigurationChildBuilder
transportFactory
in interface RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
public RemoteStoreConfigurationBuilder valueSizeEstimate(int valueSizeEstimate)
RemoteStoreConfigurationChildBuilder
valueSizeEstimate
in interface RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
public RemoteServerConfigurationBuilder addServer()
RemoteStoreConfigurationChildBuilder
addServer
in interface RemoteStoreConfigurationChildBuilder<RemoteStoreConfigurationBuilder>
public RemoteStoreConfiguration create()
Builder
create
in interface Builder<RemoteStoreConfiguration>
public RemoteStoreConfigurationBuilder read(RemoteStoreConfiguration template)
Builder
read
in interface Builder<RemoteStoreConfiguration>
read
in class AbstractStoreConfigurationBuilder<RemoteStoreConfiguration,RemoteStoreConfigurationBuilder>
template
- the configuration from which to "clone" this config if needed.public void validate()
Builder
validate
in interface Builder<RemoteStoreConfiguration>
validate
in class AbstractStoreConfigurationBuilder<RemoteStoreConfiguration,RemoteStoreConfigurationBuilder>
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
public CustomInterceptorsConfigurationBuilder customInterceptors()
customInterceptors
in interface ConfigurationChildBuilder
public DataContainerConfigurationBuilder dataContainer()
dataContainer
in interface ConfigurationChildBuilder
public DeadlockDetectionConfigurationBuilder deadlockDetection()
deadlockDetection
in interface ConfigurationChildBuilder
public EncodingConfigurationBuilder encoding()
encoding
in interface ConfigurationChildBuilder
public EvictionConfigurationBuilder eviction()
eviction
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 JMXStatisticsConfigurationBuilder jmxStatistics()
jmxStatistics
in interface ConfigurationChildBuilder
public PersistenceConfigurationBuilder persistence()
persistence
in interface ConfigurationChildBuilder
public LockingConfigurationBuilder locking()
locking
in interface ConfigurationChildBuilder
public SecurityConfigurationBuilder security()
security
in interface ConfigurationChildBuilder
@Deprecated public StoreAsBinaryConfigurationBuilder storeAsBinary()
storeAsBinary
in interface ConfigurationChildBuilder
public TransactionConfigurationBuilder transaction()
transaction
in interface ConfigurationChildBuilder
public VersioningConfigurationBuilder versioning()
versioning
in interface ConfigurationChildBuilder
public UnsafeConfigurationBuilder unsafe()
unsafe
in interface ConfigurationChildBuilder
public SitesConfigurationBuilder sites()
sites
in interface ConfigurationChildBuilder
public CompatibilityModeConfigurationBuilder compatibility()
compatibility
in interface ConfigurationChildBuilder
public MemoryConfigurationBuilder memory()
memory
in interface ConfigurationChildBuilder
protected ConfigurationBuilder getBuilder()
public Configuration build()
build
in interface ConfigurationChildBuilder
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.