Class RedissonBaseNodes

java.lang.Object
org.redisson.redisnode.RedissonBaseNodes
All Implemented Interfaces:
BaseRedisNodes
Direct Known Subclasses:
RedissonClusterNodes, RedissonMasterSlaveNodes, RedissonSingleNode

public class RedissonBaseNodes extends Object implements BaseRedisNodes
Author:
Nikita Koksharov
  • Constructor Details

  • Method Details

    • getNodes

      protected <T extends RedisNode> Collection<T> getNodes(NodeType type)
    • getNode

      protected RedisNode getNode(String address, NodeType nodeType)
    • getNodes

      protected List<RedisNode> getNodes()
    • pingAll

      public boolean pingAll(long timeout, TimeUnit timeUnit)
      Description copied from interface: BaseRedisNodes
      Ping all Redis nodes with specified timeout per node
      Specified by:
      pingAll in interface BaseRedisNodes
      Returns:
      true if all nodes replied "PONG", false in other case.
    • pingAll

      public boolean pingAll()
      Description copied from interface: BaseRedisNodes
      Ping all Redis nodes. Default timeout per Redis node is 1000 milliseconds
      Specified by:
      pingAll in interface BaseRedisNodes
      Returns:
      true if all nodes replied "PONG", false in other case.