Class GlobalConfigurationBuilder
java.lang.Object
org.infinispan.configuration.global.GlobalConfigurationBuilder
- All Implemented Interfaces:
GlobalConfigurationChildBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends Builder<?>>
TConfiguration for the asynchronous operations thread poolasyncThreadPoolName
(String name) Configuration for the blocking thread poolblockingThreadPoolName
(String name) build()
Builds aGlobalConfiguration
object using the settings applied to this buildercacheManagerName
(String name) Helper method that gets you a default constructed GlobalConfiguration, preconfigured to use the default clustering stack.defaultCacheName
(String defaultCacheName) Sets the name of the cache that acts as the default cache and is returned byEmbeddedCacheManager.getCache()
.static GlobalConfigurationBuilder
boolean
Configuration for the expiration thread poolprotected ClassLoader
Global state configurationint
hashCode()
jmx()
Global JMX configuration.Configuration for the listener thread poollistenerThreadPoolName
(String name) metrics()
Global metrics configuration.<T> T
modules()
Global modules configurationConfiguration for the non blocking thread poolHelper method that gets you a default constructed GlobalConfiguration, preconfigured for use in LOCAL modeConfiguration for the persistence thread poolread
(GlobalConfiguration template) security()
Security-related configurationGlobal serialization (i.e.shutdown()
Shutdown configurationsite()
Cross-site replication configurationConfiguration for the state-transfer thread poolDeprecated, for removal: This API element is subject to removal in a future version.Since 10.1, no longer used.threads()
toString()
Transport-related (i.e.void
validate()
zeroCapacityNode
(boolean zeroCapacityNode) Set the zero capacity node to true to configure a global capacity factor 0.0f for every distributed cache.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.configuration.global.GlobalConfigurationChildBuilder
globalJmxStatistics
-
Constructor Details
-
GlobalConfigurationBuilder
public GlobalConfigurationBuilder()
-
-
Method Details
-
cacheContainer
-
clusteredDefault
Helper method that gets you a default constructed GlobalConfiguration, preconfigured to use the default clustering stack.- Returns:
- a new global configuration
-
nonClusteredDefault
Helper method that gets you a default constructed GlobalConfiguration, preconfigured for use in LOCAL mode- Returns:
- a new global configuration
-
getClassLoader
-
classLoader
-
transport
Description copied from interface:GlobalConfigurationChildBuilder
Transport-related (i.e. clustering) configuration- Specified by:
transport
in interfaceGlobalConfigurationChildBuilder
-
cacheManagerName
-
metrics
Description copied from interface:GlobalConfigurationChildBuilder
Global metrics configuration.- Specified by:
metrics
in interfaceGlobalConfigurationChildBuilder
-
jmx
Description copied from interface:GlobalConfigurationChildBuilder
Global JMX configuration.- Specified by:
jmx
in interfaceGlobalConfigurationChildBuilder
-
serialization
Description copied from interface:GlobalConfigurationChildBuilder
Global serialization (i.e. marshalling) configuration- Specified by:
serialization
in interfaceGlobalConfigurationChildBuilder
-
expirationThreadPool
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the expiration thread pool- Specified by:
expirationThreadPool
in interfaceGlobalConfigurationChildBuilder
-
listenerThreadPool
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the listener thread pool- Specified by:
listenerThreadPool
in interfaceGlobalConfigurationChildBuilder
-
persistenceThreadPool
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the persistence thread pool- Specified by:
persistenceThreadPool
in interfaceGlobalConfigurationChildBuilder
-
stateTransferThreadPool
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the state-transfer thread pool- Specified by:
stateTransferThreadPool
in interfaceGlobalConfigurationChildBuilder
-
asyncThreadPool
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the asynchronous operations thread pool- Specified by:
asyncThreadPool
in interfaceGlobalConfigurationChildBuilder
-
blockingThreadPool
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the blocking thread pool- Specified by:
blockingThreadPool
in interfaceGlobalConfigurationChildBuilder
-
nonBlockingThreadPool
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the non blocking thread pool- Specified by:
nonBlockingThreadPool
in interfaceGlobalConfigurationChildBuilder
-
asyncThreadPoolName
-
listenerThreadPoolName
-
expirationThreadPoolName
-
persistenceThreadPoolName
-
stateTransferThreadPoolName
@Deprecated(forRemoval=true) public GlobalConfigurationBuilder stateTransferThreadPoolName(String name) Deprecated, for removal: This API element is subject to removal in a future version.Since 10.1, no longer used. -
nonBlockingThreadPoolName
-
blockingThreadPoolName
-
security
Description copied from interface:GlobalConfigurationChildBuilder
Security-related configuration- Specified by:
security
in interfaceGlobalConfigurationChildBuilder
-
shutdown
Description copied from interface:GlobalConfigurationChildBuilder
Shutdown configuration- Specified by:
shutdown
in interfaceGlobalConfigurationChildBuilder
-
modules
Description copied from interface:GlobalConfigurationChildBuilder
Global modules configuration- Specified by:
modules
in interfaceGlobalConfigurationChildBuilder
-
module
-
zeroCapacityNode
Set the zero capacity node to true to configure a global capacity factor 0.0f for every distributed cache. The node will join the cluster but won't keep data on it. However, this flag does not affect replicated caches. Replicated caches will continue to keep copies of the data in this node. Use only distributed caches to make the best use of this feature.- Parameters:
zeroCapacityNode
- value, true or false- Returns:
- GlobalConfigurationBuilder instance
-
clearModules
-
site
Description copied from interface:GlobalConfigurationChildBuilder
Cross-site replication configuration- Specified by:
site
in interfaceGlobalConfigurationChildBuilder
-
addModule
-
globalState
Description copied from interface:GlobalConfigurationChildBuilder
Global state configuration- Specified by:
globalState
in interfaceGlobalConfigurationChildBuilder
-
defaultCacheName
Description copied from interface:GlobalConfigurationChildBuilder
Sets the name of the cache that acts as the default cache and is returned byEmbeddedCacheManager.getCache()
. Not- Specified by:
defaultCacheName
in interfaceGlobalConfigurationChildBuilder
-
defaultCacheName
-
validate
public void validate() -
build
Description copied from interface:GlobalConfigurationChildBuilder
Builds aGlobalConfiguration
object using the settings applied to this builder- Specified by:
build
in interfaceGlobalConfigurationChildBuilder
-
getFeatures
-
read
-
defaultClusteredBuilder
-
toString
-
equals
-
hashCode
public int hashCode() -
threads
-