Package org.redisson.config
Class RedissonNodeFileConfig
- java.lang.Object
-
- org.redisson.config.Config
-
- org.redisson.config.RedissonNodeFileConfig
-
- Direct Known Subclasses:
RedissonNodeConfig
public class RedissonNodeFileConfig extends Config
Redisson Node file configuration- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description RedissonNodeFileConfig()
RedissonNodeFileConfig(Config oldConf)
RedissonNodeFileConfig(RedissonNodeFileConfig oldConf)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RedissonNodeFileConfig
fromJSON(File file)
Read config object stored in JSON format fromFile
static RedissonNodeFileConfig
fromYAML(File file)
Read config object stored in YAML format fromFile
Map<String,Integer>
getExecutorServiceWorkers()
int
getMapReduceWorkers()
RedissonNodeInitializer
getRedissonNodeInitializer()
RedissonNodeFileConfig
setExecutorServiceWorkers(Map<String,Integer> workers)
Executor service workers amount per service nameRedissonNodeFileConfig
setMapReduceWorkers(int mapReduceWorkers)
MapReduce workers amount.RedissonNodeFileConfig
setRedissonNodeInitializer(RedissonNodeInitializer redissonNodeInitializer)
Redisson node initializer-
Methods inherited from class org.redisson.config.Config
fromJSON, fromJSON, fromJSON, fromJSON, fromJSON, fromYAML, fromYAML, fromYAML, fromYAML, fromYAML, getAddressResolverGroupFactory, getCleanUpKeysAmount, getClusterServersConfig, getCodec, getConnectionListener, getEventLoopGroup, getExecutor, getLockWatchdogTimeout, getMasterSlaveServersConfig, getMaxCleanUpDelay, getMinCleanUpDelay, getNettyHook, getNettyThreads, getReliableTopicWatchdogTimeout, getReplicatedServersConfig, getSentinelServersConfig, getSingleServerConfig, getThreads, getTransportMode, isClusterConfig, isKeepPubSubOrder, isReferenceEnabled, isSentinelConfig, isUseScriptCache, isUseThreadClassLoader, setAddressResolverGroupFactory, setCleanUpKeysAmount, setClusterServersConfig, setCodec, setConnectionListener, setEventLoopGroup, setExecutor, setKeepPubSubOrder, setLockWatchdogTimeout, setMasterSlaveServersConfig, setMaxCleanUpDelay, setMinCleanUpDelay, setNettyHook, setNettyThreads, setReferenceEnabled, setReliableTopicWatchdogTimeout, setReplicatedServersConfig, setSentinelServersConfig, setSingleServerConfig, setThreads, setTransportMode, setUseScriptCache, setUseThreadClassLoader, toJSON, toYAML, useClusterServers, useCustomServers, useMasterSlaveServers, useReplicatedServers, useSentinelServers, useSingleServer
-
-
-
-
Constructor Detail
-
RedissonNodeFileConfig
public RedissonNodeFileConfig()
-
RedissonNodeFileConfig
public RedissonNodeFileConfig(Config oldConf)
-
RedissonNodeFileConfig
public RedissonNodeFileConfig(RedissonNodeFileConfig oldConf)
-
-
Method Detail
-
setMapReduceWorkers
public RedissonNodeFileConfig setMapReduceWorkers(int mapReduceWorkers)
MapReduce workers amount.0 = current_processors_amount
-1 = disable MapReduce workers
Default is
0
- Parameters:
mapReduceWorkers
- workers for MapReduce- Returns:
- config
-
getMapReduceWorkers
public int getMapReduceWorkers()
-
setExecutorServiceWorkers
public RedissonNodeFileConfig setExecutorServiceWorkers(Map<String,Integer> workers)
Executor service workers amount per service name- Parameters:
workers
- mapping- Returns:
- config
-
setRedissonNodeInitializer
public RedissonNodeFileConfig setRedissonNodeInitializer(RedissonNodeInitializer redissonNodeInitializer)
Redisson node initializer- Parameters:
redissonNodeInitializer
- object- Returns:
- config
-
getRedissonNodeInitializer
public RedissonNodeInitializer getRedissonNodeInitializer()
-
fromJSON
public static RedissonNodeFileConfig fromJSON(File file) throws IOException
Read config object stored in JSON format fromFile
- Parameters:
file
- object- Returns:
- config
- Throws:
IOException
- error
-
fromYAML
public static RedissonNodeFileConfig fromYAML(File file) throws IOException
Read config object stored in YAML format fromFile
- Parameters:
file
- object- Returns:
- config
- Throws:
IOException
- error
-
-