Class GlobalConfigurationBuilder
- java.lang.Object
-
- org.infinispan.configuration.global.GlobalConfigurationBuilder
-
- All Implemented Interfaces:
GlobalConfigurationChildBuilder
public class GlobalConfigurationBuilder extends Object implements GlobalConfigurationChildBuilder
-
-
Constructor Summary
Constructors Constructor Description GlobalConfigurationBuilder()
-
Method Summary
-
Methods inherited from interface org.infinispan.configuration.global.GlobalConfigurationChildBuilder
globalJmxStatistics
-
-
-
-
Method Detail
-
cacheContainer
public CacheContainerConfigurationBuilder cacheContainer()
-
clusteredDefault
public GlobalConfigurationBuilder clusteredDefault()
Helper method that gets you a default constructed GlobalConfiguration, preconfigured to use the default clustering stack.- Returns:
- a new global configuration
-
nonClusteredDefault
public GlobalConfigurationBuilder nonClusteredDefault()
Helper method that gets you a default constructed GlobalConfiguration, preconfigured for use in LOCAL mode- Returns:
- a new global configuration
-
getClassLoader
protected ClassLoader getClassLoader()
-
classLoader
public GlobalConfigurationBuilder classLoader(ClassLoader cl)
-
transport
public TransportConfigurationBuilder transport()
Description copied from interface:GlobalConfigurationChildBuilder
Transport-related (i.e. clustering) configuration- Specified by:
transport
in interfaceGlobalConfigurationChildBuilder
-
cacheManagerName
public GlobalConfigurationBuilder cacheManagerName(String name)
-
metrics
public GlobalMetricsConfigurationBuilder metrics()
Description copied from interface:GlobalConfigurationChildBuilder
Global microprofile metrics configuration.- Specified by:
metrics
in interfaceGlobalConfigurationChildBuilder
-
jmx
public GlobalJmxConfigurationBuilder jmx()
Description copied from interface:GlobalConfigurationChildBuilder
Global JMX configuration.- Specified by:
jmx
in interfaceGlobalConfigurationChildBuilder
-
serialization
public SerializationConfigurationBuilder serialization()
Description copied from interface:GlobalConfigurationChildBuilder
Global serialization (i.e. marshalling) configuration- Specified by:
serialization
in interfaceGlobalConfigurationChildBuilder
-
expirationThreadPool
public ThreadPoolConfigurationBuilder expirationThreadPool()
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the expiration thread pool- Specified by:
expirationThreadPool
in interfaceGlobalConfigurationChildBuilder
-
listenerThreadPool
public ThreadPoolConfigurationBuilder listenerThreadPool()
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the listener thread pool- Specified by:
listenerThreadPool
in interfaceGlobalConfigurationChildBuilder
-
persistenceThreadPool
public ThreadPoolConfigurationBuilder persistenceThreadPool()
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the persistence thread pool- Specified by:
persistenceThreadPool
in interfaceGlobalConfigurationChildBuilder
-
stateTransferThreadPool
public ThreadPoolConfigurationBuilder stateTransferThreadPool()
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the state-transfer thread pool- Specified by:
stateTransferThreadPool
in interfaceGlobalConfigurationChildBuilder
-
asyncThreadPool
public ThreadPoolConfigurationBuilder asyncThreadPool()
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the asynchronous operations thread pool- Specified by:
asyncThreadPool
in interfaceGlobalConfigurationChildBuilder
-
blockingThreadPool
public ThreadPoolConfigurationBuilder blockingThreadPool()
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the blocking thread pool- Specified by:
blockingThreadPool
in interfaceGlobalConfigurationChildBuilder
-
nonBlockingThreadPool
public ThreadPoolConfigurationBuilder nonBlockingThreadPool()
Description copied from interface:GlobalConfigurationChildBuilder
Configuration for the non blocking thread pool- Specified by:
nonBlockingThreadPool
in interfaceGlobalConfigurationChildBuilder
-
asyncThreadPoolName
public GlobalConfigurationBuilder asyncThreadPoolName(String name)
-
listenerThreadPoolName
public GlobalConfigurationBuilder listenerThreadPoolName(String name)
-
expirationThreadPoolName
public GlobalConfigurationBuilder expirationThreadPoolName(String name)
-
persistenceThreadPoolName
public GlobalConfigurationBuilder persistenceThreadPoolName(String name)
-
stateTransferThreadPoolName
@Deprecated public GlobalConfigurationBuilder stateTransferThreadPoolName(String name)
Deprecated.Since 10.1, no longer used.
-
nonBlockingThreadPoolName
public GlobalConfigurationBuilder nonBlockingThreadPoolName(String name)
-
blockingThreadPoolName
public GlobalConfigurationBuilder blockingThreadPoolName(String name)
-
security
public GlobalSecurityConfigurationBuilder security()
Description copied from interface:GlobalConfigurationChildBuilder
Security-related configuration- Specified by:
security
in interfaceGlobalConfigurationChildBuilder
-
shutdown
public ShutdownConfigurationBuilder shutdown()
Description copied from interface:GlobalConfigurationChildBuilder
Shutdown configuration- Specified by:
shutdown
in interfaceGlobalConfigurationChildBuilder
-
modules
public List<Builder<?>> modules()
Description copied from interface:GlobalConfigurationChildBuilder
Global modules configuration- Specified by:
modules
in interfaceGlobalConfigurationChildBuilder
-
module
public <T> T module(Class<T> moduleClass)
-
zeroCapacityNode
public GlobalConfigurationBuilder zeroCapacityNode(boolean 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
public GlobalConfigurationBuilder clearModules()
-
site
public SiteConfigurationBuilder site()
Description copied from interface:GlobalConfigurationChildBuilder
Cross-site replication configuration- Specified by:
site
in interfaceGlobalConfigurationChildBuilder
-
globalState
public GlobalStateConfigurationBuilder globalState()
Description copied from interface:GlobalConfigurationChildBuilder
Global state configuration- Specified by:
globalState
in interfaceGlobalConfigurationChildBuilder
-
defaultCacheName
public GlobalConfigurationBuilder defaultCacheName(String 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
-
validate
public void validate()
-
build
public GlobalConfiguration build()
Description copied from interface:GlobalConfigurationChildBuilder
Builds aGlobalConfiguration
object using the settings applied to this builder- Specified by:
build
in interfaceGlobalConfigurationChildBuilder
-
getFeatures
public Features getFeatures()
-
read
public GlobalConfigurationBuilder read(GlobalConfiguration template)
-
defaultClusteredBuilder
public static GlobalConfigurationBuilder defaultClusteredBuilder()
-
toString
public String toString()
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
threads
public ThreadsConfigurationBuilder threads()
-
-