public class StateTransferConfigurationBuilder extends Object implements Builder<StateTransferConfiguration>
| Modifier and Type | Method and Description |
|---|---|
AsyncConfigurationBuilder |
async()
If configured all communications are asynchronous, in that whenever a thread sends a message
sent over the wire, it does not wait for an acknowledgment before returning.
|
StateTransferConfigurationBuilder |
awaitInitialTransfer(boolean b)
If
true, this will cause the first call to method CacheManager.getCache() on the joiner node to
block and wait until the joining is complete and the cache has finished receiving state from neighboring caches
(if fetchInMemoryState is enabled). |
Configuration |
build() |
StateTransferConfigurationBuilder |
chunkSize(int i)
The state will be transferred in batches of
chunkSize cache entries. |
ClusteringConfigurationBuilder |
clustering() |
CompatibilityModeConfigurationBuilder |
compatibility() |
StateTransferConfiguration |
create()
Create the configuration bean
|
CustomInterceptorsConfigurationBuilder |
customInterceptors() |
DataContainerConfigurationBuilder |
dataContainer() |
DeadlockDetectionConfigurationBuilder |
deadlockDetection() |
EvictionConfigurationBuilder |
eviction() |
ExpirationConfigurationBuilder |
expiration() |
StateTransferConfigurationBuilder |
fetchInMemoryState(boolean b)
If
true, the cache will fetch data from the neighboring caches when it starts up, so
the cache starts 'warm', although it will impact startup time. |
protected ConfigurationBuilder |
getBuilder() |
protected ClusteringConfigurationBuilder |
getClusteringBuilder() |
HashConfigurationBuilder |
hash()
Allows fine-tuning of rehashing characteristics.
|
IndexingConfigurationBuilder |
indexing() |
InvocationBatchingConfigurationBuilder |
invocationBatching() |
JMXStatisticsConfigurationBuilder |
jmxStatistics() |
L1ConfigurationBuilder |
l1()
Configures the L1 cache behavior in 'distributed' caches instances.
|
LockingConfigurationBuilder |
locking() |
PartitionHandlingConfigurationBuilder |
partitionHandling()
Configures how the cache will react to cluster partitions.
|
PersistenceConfigurationBuilder |
persistence() |
StateTransferConfigurationBuilder |
read(StateTransferConfiguration template)
Reads the configuration from an already created configuration bean into this builder.
|
SecurityConfigurationBuilder |
security() |
SitesConfigurationBuilder |
sites() |
StateTransferConfigurationBuilder |
stateTransfer()
Configures how state is transferred when a new cache joins the cluster.
|
StoreAsBinaryConfigurationBuilder |
storeAsBinary() |
SyncConfigurationBuilder |
sync()
If configured all communications are synchronous, in that whenever a thread sends a message
sent over the wire, it blocks until it receives an acknowledgment from the recipient.
|
StateTransferConfigurationBuilder |
timeout(long l)
This is the maximum amount of time - in milliseconds - to wait for state from neighboring
caches, before throwing an exception and aborting startup.
|
StateTransferConfigurationBuilder |
timeout(long l,
TimeUnit unit)
This is the maximum amount of time - in milliseconds - to wait for state from neighboring
caches, before throwing an exception and aborting startup.
|
String |
toString() |
TransactionConfigurationBuilder |
transaction() |
UnsafeConfigurationBuilder |
unsafe() |
void |
validate()
Validate the data in this builder before building the configuration bean
|
void |
validate(GlobalConfiguration globalConfig) |
VersioningConfigurationBuilder |
versioning() |
build, clustering, compatibility, customInterceptors, dataContainer, deadlockDetection, eviction, expiration, indexing, invocationBatching, jmxStatistics, locking, persistence, security, sites, storeAsBinary, transaction, unsafe, versioningpublic StateTransferConfigurationBuilder fetchInMemoryState(boolean b)
true, the cache will fetch data from the neighboring caches when it starts up, so
the cache starts 'warm', although it will impact startup time.
In distributed mode, state is transferred between running caches as well, as the ownership of
keys changes (e.g. because a cache left the cluster). Disabling this setting means a key will
sometimes have less than numOwner owners.public StateTransferConfigurationBuilder awaitInitialTransfer(boolean b)
true, this will cause the first call to method CacheManager.getCache() on the joiner node to
block and wait until the joining is complete and the cache has finished receiving state from neighboring caches
(if fetchInMemoryState is enabled). This option applies to distributed and replicated caches only and is enabled
by default. Please note that setting this to false will make the cache object available immediately but
any access to keys that should be available locally but are not yet transferred will actually cause a (transparent)
remote access. While this will not have any impact on the logic of your application it might impact performance.public StateTransferConfigurationBuilder chunkSize(int i)
chunkSize cache entries.
If chunkSize is equal to Integer.MAX_VALUE, the state will be transferred in all at once. Not recommended.public StateTransferConfigurationBuilder timeout(long l)
public StateTransferConfigurationBuilder timeout(long l, TimeUnit unit)
public void validate()
Buildervalidate in interface Builder<StateTransferConfiguration>public void validate(GlobalConfiguration globalConfig)
validate in interface ConfigurationChildBuilderpublic StateTransferConfiguration create()
Buildercreate in interface Builder<StateTransferConfiguration>public StateTransferConfigurationBuilder read(StateTransferConfiguration template)
Builderread in interface Builder<StateTransferConfiguration>template - the configuration from which to "clone" this config if needed.public AsyncConfigurationBuilder async()
ClusteringConfigurationChildBuilderasync in interface ClusteringConfigurationChildBuilderpublic HashConfigurationBuilder hash()
ClusteringConfigurationChildBuilderhash in interface ClusteringConfigurationChildBuilderpublic L1ConfigurationBuilder l1()
ClusteringConfigurationChildBuilderl1 in interface ClusteringConfigurationChildBuilderpublic StateTransferConfigurationBuilder stateTransfer()
ClusteringConfigurationChildBuilderstateTransfer in interface ClusteringConfigurationChildBuilderpublic SyncConfigurationBuilder sync()
ClusteringConfigurationChildBuildersync in interface ClusteringConfigurationChildBuilderpublic PartitionHandlingConfigurationBuilder partitionHandling()
ClusteringConfigurationChildBuilderpartitionHandling in interface ClusteringConfigurationChildBuilderprotected ClusteringConfigurationBuilder getClusteringBuilder()
public ClusteringConfigurationBuilder clustering()
clustering in interface ConfigurationChildBuilderpublic CustomInterceptorsConfigurationBuilder customInterceptors()
customInterceptors in interface ConfigurationChildBuilderpublic DataContainerConfigurationBuilder dataContainer()
dataContainer in interface ConfigurationChildBuilderpublic DeadlockDetectionConfigurationBuilder deadlockDetection()
deadlockDetection in interface ConfigurationChildBuilderpublic EvictionConfigurationBuilder eviction()
eviction in interface ConfigurationChildBuilderpublic ExpirationConfigurationBuilder expiration()
expiration in interface ConfigurationChildBuilderpublic IndexingConfigurationBuilder indexing()
indexing in interface ConfigurationChildBuilderpublic InvocationBatchingConfigurationBuilder invocationBatching()
invocationBatching in interface ConfigurationChildBuilderpublic JMXStatisticsConfigurationBuilder jmxStatistics()
jmxStatistics in interface ConfigurationChildBuilderpublic PersistenceConfigurationBuilder persistence()
persistence in interface ConfigurationChildBuilderpublic LockingConfigurationBuilder locking()
locking in interface ConfigurationChildBuilderpublic SecurityConfigurationBuilder security()
security in interface ConfigurationChildBuilderpublic StoreAsBinaryConfigurationBuilder storeAsBinary()
storeAsBinary in interface ConfigurationChildBuilderpublic TransactionConfigurationBuilder transaction()
transaction in interface ConfigurationChildBuilderpublic VersioningConfigurationBuilder versioning()
versioning in interface ConfigurationChildBuilderpublic UnsafeConfigurationBuilder unsafe()
unsafe in interface ConfigurationChildBuilderpublic SitesConfigurationBuilder sites()
sites in interface ConfigurationChildBuilderpublic CompatibilityModeConfigurationBuilder compatibility()
compatibility in interface ConfigurationChildBuilderprotected ConfigurationBuilder getBuilder()
public Configuration build()
build in interface ConfigurationChildBuilderCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.