public class RedissonNode extends Object
Modifier and Type | Method and Description |
---|---|
static RedissonNode |
create(RedissonNodeConfig config)
Create Redisson node instance with provided config
|
static RedissonNode |
create(RedissonNodeConfig config,
RedissonClient redisson)
Create Redisson node instance with provided config and Redisson instance
|
String |
getId() |
InetSocketAddress |
getLocalAddress() |
RedissonClient |
getRedisson() |
InetSocketAddress |
getRemoteAddress() |
static void |
main(String[] args) |
void |
shutdown()
Shutdown Redisson node instance
|
void |
start()
Start Redisson node instance
|
public RedissonClient getRedisson()
public InetSocketAddress getLocalAddress()
public InetSocketAddress getRemoteAddress()
public String getId()
public static void main(String[] args)
public void shutdown()
public void start()
public static RedissonNode create(RedissonNodeConfig config)
config
- of RedissonNodepublic static RedissonNode create(RedissonNodeConfig config, RedissonClient redisson)
config
- of RedissonNoderedisson
- instanceCopyright © 2014–2018 The Redisson Project. All rights reserved.