public class RedissonNodeConfig extends Config
Constructor and Description |
---|
RedissonNodeConfig() |
RedissonNodeConfig(Config oldConf) |
RedissonNodeConfig(RedissonNodeConfig oldConf) |
Modifier and Type | Method and Description |
---|---|
static RedissonNodeConfig |
fromJSON(File file)
Read config object stored in JSON format from
File |
static RedissonNodeConfig |
fromYAML(File file)
Read config object stored in YAML format from
File |
Map<String,Integer> |
getExecutorServiceWorkers() |
int |
getMapReduceWorkers() |
RedissonNodeInitializer |
getRedissonNodeInitializer() |
RedissonNodeConfig |
setExecutorServiceWorkers(Map<String,Integer> workers)
Executor service workers amount per service name
|
RedissonNodeConfig |
setMapReduceWorkers(int mapReduceWorkers)
MapReduce workers amount.
|
RedissonNodeConfig |
setRedissonNodeInitializer(RedissonNodeInitializer redissonNodeInitializer)
Redisson node initializer
|
fromJSON, fromJSON, fromJSON, fromJSON, fromJSON, fromYAML, fromYAML, fromYAML, fromYAML, fromYAML, getAddressResolverGroupFactory, getCodec, getEventLoopGroup, getExecutor, getLockWatchdogTimeout, getNettyThreads, getThreads, getTransportMode, isClusterConfig, isDecodeInExecutor, isKeepPubSubOrder, isReferenceEnabled, isSentinelConfig, isUseScriptCache, setAddressResolverGroupFactory, setCodec, setDecodeInExecutor, setEventLoopGroup, setExecutor, setKeepPubSubOrder, setLockWatchdogTimeout, setNettyThreads, setReferenceEnabled, setThreads, setTransportMode, setUseScriptCache, toJSON, toYAML, useClusterServers, useCustomServers, useMasterSlaveServers, useReplicatedServers, useSentinelServers, useSingleServer
public RedissonNodeConfig()
public RedissonNodeConfig(Config oldConf)
public RedissonNodeConfig(RedissonNodeConfig oldConf)
public RedissonNodeConfig setMapReduceWorkers(int mapReduceWorkers)
0 = current_processors_amount
-1 = disable MapReduce workers
Default is 0
mapReduceWorkers
- workers for MapReducepublic int getMapReduceWorkers()
public RedissonNodeConfig setExecutorServiceWorkers(Map<String,Integer> workers)
workers
- mappingpublic RedissonNodeConfig setRedissonNodeInitializer(RedissonNodeInitializer redissonNodeInitializer)
redissonNodeInitializer
- objectpublic RedissonNodeInitializer getRedissonNodeInitializer()
public static RedissonNodeConfig fromJSON(File file) throws IOException
File
file
- objectIOException
- errorpublic static RedissonNodeConfig fromYAML(File file) throws IOException
File
file
- objectIOException
- errorCopyright © 2014–2019 The Redisson Project. All rights reserved.