Package org.redisson

Class RedisNodes<N extends Node>

java.lang.Object
org.redisson.RedisNodes<N>
Type Parameters:
N - node type
All Implemented Interfaces:
NodesGroup<N>
Direct Known Subclasses:
RedisClusterNodes

@Deprecated public class RedisNodes<N extends Node> extends Object implements NodesGroup<N>
Deprecated.
Author:
Nikita Koksharov
  • Constructor Details

  • Method Details

    • getNode

      public N getNode(String address)
      Deprecated.
      Description copied from interface: NodesGroup
      Get Redis node by address in format: redis://host:port
      Specified by:
      getNode in interface NodesGroup<N extends Node>
      Parameters:
      address - of node
      Returns:
      node
    • getNodes

      public Collection<N> getNodes(NodeType type)
      Deprecated.
      Description copied from interface: NodesGroup
      Get all Redis nodes by type
      Specified by:
      getNodes in interface NodesGroup<N extends Node>
      Parameters:
      type - - type of node
      Returns:
      collection of nodes
    • getNodes

      public Collection<N> getNodes()
      Deprecated.
      Description copied from interface: NodesGroup
      All Redis nodes used by Redisson. This collection may change during master change, cluster topology update and etc.
      Specified by:
      getNodes in interface NodesGroup<N extends Node>
      Returns:
      collection of nodes
    • pingAll

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

      public boolean pingAll()
      Deprecated.
      Description copied from interface: NodesGroup
      Ping all Redis nodes. Default timeout per Redis node is 1000 milliseconds
      Specified by:
      pingAll in interface NodesGroup<N extends Node>
      Returns:
      true if all nodes replied "PONG", false in other case.
    • addConnectionListener

      public int addConnectionListener(ConnectionListener connectionListener)
      Deprecated.
      Description copied from interface: NodesGroup
      Adds connection listener which will be triggered when Redisson connected to or disconnected from Redis server
      Specified by:
      addConnectionListener in interface NodesGroup<N extends Node>
      Parameters:
      connectionListener - - connection listener
      Returns:
      id of listener
    • removeConnectionListener

      public void removeConnectionListener(int listenerId)
      Deprecated.
      Description copied from interface: NodesGroup
      Removes connection listener by id
      Specified by:
      removeConnectionListener in interface NodesGroup<N extends Node>
      Parameters:
      listenerId - - id of connection listener