public class TransportConfigurationBuilder extends Object implements Builder<TransportConfiguration>
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_TRANSPORT |
Modifier and Type | Method and Description |
---|---|
TransportConfigurationBuilder |
addProperty(String key,
String value) |
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 |
TransportConfigurationBuilder |
clearProperties()
Clears the transport properties
|
TransportConfigurationBuilder |
clusterName(String clusterName)
Defines the name of the cluster.
|
TransportConfiguration |
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() . |
TransportConfigurationBuilder |
defaultTransport() |
TransportConfigurationBuilder |
distributedSyncTimeout(long distributedSyncTimeout)
Timeout for coordinating cluster formation when nodes join or leave the cluster.
|
TransportConfigurationBuilder |
distributedSyncTimeout(long distributedSyncTimeout,
TimeUnit unit)
Timeout for coordinating cluster formation when nodes join or leave the cluster.
|
ThreadPoolConfigurationBuilder |
expirationThreadPool()
Configuration for the expiration thread pool
|
protected GlobalConfigurationBuilder |
getGlobalConfig() |
String |
getProperty(String key) |
Transport |
getTransport() |
GlobalStateConfigurationBuilder |
globalState()
Global state configuration
|
TransportConfigurationBuilder |
initialClusterSize(int clusterSize)
Sets the number of nodes that need to join before the cache container can start.
|
TransportConfigurationBuilder |
initialClusterTimeout(long initialClusterTimeout,
TimeUnit unit)
Sets the timeout for the initial cluster to form.
|
JGroupsConfigurationBuilder |
jgroups() |
GlobalJmxConfigurationBuilder |
jmx()
Global JMX configuration.
|
ThreadPoolConfigurationBuilder |
listenerThreadPool()
Configuration for the listener thread pool
|
TransportConfigurationBuilder |
machineId(String machineId)
The id of the machine where this node runs.
|
GlobalMetricsConfigurationBuilder |
metrics()
Global microprofile metrics configuration.
|
List<Builder<?>> |
modules()
Global modules configuration
|
TransportConfigurationBuilder |
nodeName(String nodeName)
Name of the current node.
|
ThreadPoolConfigurationBuilder |
nonBlockingThreadPool()
Configuration for the non blocking thread pool
|
ThreadPoolConfigurationBuilder |
persistenceThreadPool()
Configuration for the persistence thread pool
|
TransportConfigurationBuilder |
rackId(String rackId)
The id of the rack where this node runs.
|
TransportConfigurationBuilder |
read(TransportConfiguration template)
Reads the configuration from an already created configuration bean into this builder.
|
ThreadPoolConfigurationBuilder |
remoteCommandThreadPool() |
TransportConfigurationBuilder |
remoteExecutor(String threadPoolName) |
TransportConfigurationBuilder |
removeProperty(String key) |
GlobalSecurityConfigurationBuilder |
security()
Security-related configuration
|
SerializationConfigurationBuilder |
serialization()
Global serialization (i.e.
|
ShutdownConfigurationBuilder |
shutdown()
Shutdown configuration
|
SiteConfigurationBuilder |
site()
Cross-site replication configuration
|
TransportConfigurationBuilder |
siteId(String siteId)
The id of the site where this node runs.
|
ThreadPoolConfigurationBuilder |
stateTransferThreadPool()
Configuration for the state-transfer thread pool
|
String |
toString() |
TransportConfigurationBuilder |
transport()
Transport-related (i.e.
|
TransportConfigurationBuilder |
transport(Transport transport)
Class that represents a network transport.
|
TransportConfigurationBuilder |
transportExecutor(String threadPoolName)
Deprecated.
|
ThreadPoolConfigurationBuilder |
transportThreadPool() |
void |
validate()
Validate the data in this builder before building the configuration bean
|
TransportConfigurationBuilder |
withProperties(Properties properties)
Sets transport properties
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
globalJmxStatistics
public static final String DEFAULT_TRANSPORT
public TransportConfigurationBuilder clusterName(String clusterName)
clusterName
- public TransportConfigurationBuilder machineId(String machineId)
public TransportConfigurationBuilder rackId(String rackId)
public TransportConfigurationBuilder siteId(String siteId)
public TransportConfigurationBuilder distributedSyncTimeout(long distributedSyncTimeout)
distributedSyncTimeout
- public TransportConfigurationBuilder distributedSyncTimeout(long distributedSyncTimeout, TimeUnit unit)
distributedSyncTimeout
- public TransportConfigurationBuilder initialClusterSize(int clusterSize)
public TransportConfigurationBuilder initialClusterTimeout(long initialClusterTimeout, TimeUnit unit)
public TransportConfigurationBuilder transport(Transport transport)
transport
- transport instancepublic TransportConfigurationBuilder nodeName(String nodeName)
nodeName
- public TransportConfigurationBuilder withProperties(Properties properties)
properties
- public TransportConfigurationBuilder clearProperties()
public TransportConfigurationBuilder addProperty(String key, String value)
public TransportConfigurationBuilder removeProperty(String key)
public ThreadPoolConfigurationBuilder transportThreadPool()
public ThreadPoolConfigurationBuilder remoteCommandThreadPool()
public void validate()
Builder
validate
in interface Builder<TransportConfiguration>
public JGroupsConfigurationBuilder jgroups()
public TransportConfiguration create()
Builder
create
in interface Builder<TransportConfiguration>
public TransportConfigurationBuilder defaultTransport()
@Deprecated public TransportConfigurationBuilder transportExecutor(String threadPoolName)
public TransportConfigurationBuilder remoteExecutor(String threadPoolName)
public TransportConfigurationBuilder read(TransportConfiguration template)
Builder
read
in interface Builder<TransportConfiguration>
template
- the configuration from which to "clone" this config if needed.public Transport getTransport()
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.