public class GlobalStateConfigurationBuilder extends Object implements Builder<GlobalStateConfiguration>
Modifier and Type | Method and Description |
---|---|
ThreadPoolConfigurationBuilder |
asyncThreadPool()
Configuration for the asynchronous operations thread pool
|
ThreadPoolConfigurationBuilder |
blockingThreadPool()
Configuration for the blocking thread pool
|
GlobalConfiguration |
build()
Builds a
GlobalConfiguration object using the settings applied to this builder |
GlobalStateConfigurationBuilder |
configurationStorage(ConfigurationStorage storage)
Defines the
ConfigurationStorage strategy to use. |
GlobalStateConfigurationBuilder |
configurationStorageSupplier(Supplier<? extends LocalConfigurationStorage> configurationStorageSupplier)
Defines the @
LocalConfigurationStorage . |
GlobalStateConfiguration |
create()
Create the configuration bean
|
GlobalConfigurationBuilder |
defaultCacheName(String defaultCacheName)
Sets the name of the cache that acts as the default cache and is returned by
EmbeddedCacheManager.getCache() . |
GlobalStateConfigurationBuilder |
disable() |
GlobalStateConfigurationBuilder |
enable() |
boolean |
enabled() |
GlobalStateConfigurationBuilder |
enabled(boolean enabled)
Enables or disables the storage of global state.
|
ThreadPoolConfigurationBuilder |
expirationThreadPool()
Configuration for the expiration thread pool
|
protected GlobalConfigurationBuilder |
getGlobalConfig() |
GlobalStateConfigurationBuilder |
globalState()
Global state configuration
|
GlobalJmxConfigurationBuilder |
jmx()
Global JMX configuration.
|
ThreadPoolConfigurationBuilder |
listenerThreadPool()
Configuration for the listener thread pool
|
GlobalMetricsConfigurationBuilder |
metrics()
Global microprofile metrics configuration.
|
List<Builder<?>> |
modules()
Global modules configuration
|
ThreadPoolConfigurationBuilder |
nonBlockingThreadPool()
Configuration for the non blocking thread pool
|
ThreadPoolConfigurationBuilder |
persistenceThreadPool()
Configuration for the persistence thread pool
|
GlobalStateConfigurationBuilder |
persistentLocation(String location)
Defines the filesystem path where node-specific persistent data which needs to survive container restarts
should be stored.
|
GlobalStateConfigurationBuilder |
persistentLocation(String path,
String relativeTo) |
Builder<?> |
read(GlobalStateConfiguration template)
Reads the configuration from an already created configuration bean into this builder.
|
GlobalSecurityConfigurationBuilder |
security()
Security-related configuration
|
SerializationConfigurationBuilder |
serialization()
Global serialization (i.e.
|
GlobalStateConfigurationBuilder |
sharedPersistentLocation(String location)
Defines the filesystem path where shared persistent state data which needs to survive container restarts
should be stored.
|
GlobalStateConfigurationBuilder |
sharedPersistentLocation(String path,
String relativeTo) |
ShutdownConfigurationBuilder |
shutdown()
Shutdown configuration
|
SiteConfigurationBuilder |
site()
Cross-site replication configuration
|
ThreadPoolConfigurationBuilder |
stateTransferThreadPool()
Configuration for the state-transfer thread pool
|
GlobalStateConfigurationBuilder |
temporaryLocation(String location)
Defines the filesystem path where temporary state should be stored.
|
GlobalStateConfigurationBuilder |
temporaryLocation(String path,
String relativeTo) |
TransportConfigurationBuilder |
transport()
Transport-related (i.e.
|
void |
validate()
Validate the data in this builder before building the configuration bean
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
globalJmxStatistics
public GlobalStateConfigurationBuilder enable()
public GlobalStateConfigurationBuilder disable()
public GlobalStateConfigurationBuilder enabled(boolean enabled)
public boolean enabled()
public GlobalStateConfigurationBuilder persistentLocation(String location)
SingleFileStore
as well as the consistent hash for all caches
which enables graceful shutdown and restart. Because the data stored in the persistent
location is specific to the node that owns it, this path MUST NOT be shared among multiple instances.
Defaults to the user.dir system property which usually is where the application was started.
This value should be overridden to a more appropriate location.public GlobalStateConfigurationBuilder persistentLocation(String path, String relativeTo)
public GlobalStateConfigurationBuilder sharedPersistentLocation(String location)
OverlayLocalConfigurationStorage
.
This path MAY be safely shared among multiple instances.
If not set, this will use the persistentLocation
value.
This value should be overridden to a more appropriate location.public GlobalStateConfigurationBuilder sharedPersistentLocation(String path, String relativeTo)
public GlobalStateConfigurationBuilder temporaryLocation(String location)
public GlobalStateConfigurationBuilder temporaryLocation(String path, String relativeTo)
public GlobalStateConfigurationBuilder configurationStorage(ConfigurationStorage storage)
ConfigurationStorage
strategy to use. If using ConfigurationStorage.CUSTOM
, then
the actual implementation must be passed by invoking configurationStorageSupplier(Supplier)
public GlobalStateConfigurationBuilder configurationStorageSupplier(Supplier<? extends LocalConfigurationStorage> configurationStorageSupplier)
LocalConfigurationStorage
. Defaults to @VolatileLocalConfigurationStorage
public void validate()
Builder
validate
in interface Builder<GlobalStateConfiguration>
public GlobalStateConfiguration create()
Builder
create
in interface Builder<GlobalStateConfiguration>
public Builder<?> read(GlobalStateConfiguration template)
Builder
read
in interface Builder<GlobalStateConfiguration>
template
- the configuration from which to "clone" this config if needed.protected GlobalConfigurationBuilder getGlobalConfig()
public TransportConfigurationBuilder transport()
GlobalConfigurationChildBuilder
transport
in interface GlobalConfigurationChildBuilder
public GlobalMetricsConfigurationBuilder metrics()
GlobalConfigurationChildBuilder
metrics
in interface GlobalConfigurationChildBuilder
public GlobalJmxConfigurationBuilder jmx()
GlobalConfigurationChildBuilder
jmx
in interface GlobalConfigurationChildBuilder
public GlobalStateConfigurationBuilder globalState()
GlobalConfigurationChildBuilder
globalState
in interface GlobalConfigurationChildBuilder
public SerializationConfigurationBuilder serialization()
GlobalConfigurationChildBuilder
serialization
in interface GlobalConfigurationChildBuilder
public ThreadPoolConfigurationBuilder listenerThreadPool()
GlobalConfigurationChildBuilder
listenerThreadPool
in interface GlobalConfigurationChildBuilder
public ThreadPoolConfigurationBuilder asyncThreadPool()
GlobalConfigurationChildBuilder
asyncThreadPool
in interface GlobalConfigurationChildBuilder
public ThreadPoolConfigurationBuilder expirationThreadPool()
GlobalConfigurationChildBuilder
expirationThreadPool
in interface GlobalConfigurationChildBuilder
public ThreadPoolConfigurationBuilder persistenceThreadPool()
GlobalConfigurationChildBuilder
persistenceThreadPool
in interface GlobalConfigurationChildBuilder
public ThreadPoolConfigurationBuilder stateTransferThreadPool()
GlobalConfigurationChildBuilder
stateTransferThreadPool
in interface GlobalConfigurationChildBuilder
public ThreadPoolConfigurationBuilder blockingThreadPool()
GlobalConfigurationChildBuilder
blockingThreadPool
in interface GlobalConfigurationChildBuilder
public ThreadPoolConfigurationBuilder nonBlockingThreadPool()
GlobalConfigurationChildBuilder
nonBlockingThreadPool
in interface GlobalConfigurationChildBuilder
public GlobalSecurityConfigurationBuilder security()
GlobalConfigurationChildBuilder
security
in interface GlobalConfigurationChildBuilder
public ShutdownConfigurationBuilder shutdown()
GlobalConfigurationChildBuilder
shutdown
in interface GlobalConfigurationChildBuilder
public SiteConfigurationBuilder site()
GlobalConfigurationChildBuilder
site
in interface GlobalConfigurationChildBuilder
public List<Builder<?>> modules()
GlobalConfigurationChildBuilder
modules
in interface GlobalConfigurationChildBuilder
public GlobalConfigurationBuilder defaultCacheName(String defaultCacheName)
GlobalConfigurationChildBuilder
EmbeddedCacheManager.getCache()
. NotdefaultCacheName
in interface GlobalConfigurationChildBuilder
public GlobalConfiguration build()
GlobalConfigurationChildBuilder
GlobalConfiguration
object using the settings applied to this builderbuild
in interface GlobalConfigurationChildBuilder
Copyright © 2021 JBoss by Red Hat. All rights reserved.