Interface NodesGroup<N extends Node>

    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      int addConnectionListener​(ConnectionListener connectionListener)
      Deprecated.
      Adds connection listener which will be triggered when Redisson connected to or disconnected from Redis server
      N  address)
      Deprecated.
      Get Redis node by address in format: redis://host:port
      <N> getNodes()
      Deprecated.
      All Redis nodes used by Redisson.
      <N> getNodes​(NodeType type)
      Deprecated.
      Get all Redis nodes by type
      boolean pingAll()
      Deprecated.
      Ping all Redis nodes.
      boolean pingAll​(long timeout,  timeUnit)
      Deprecated.
      Ping all Redis nodes with specified timeout per node
      void removeConnectionListener​(int listenerId)
      Deprecated.
      Removes connection listener by id
    • Method Detail

      • addConnectionListener

        int addConnectionListener​(ConnectionListener connectionListener)
        Deprecated.
        Adds connection listener which will be triggered when Redisson connected to or disconnected from Redis server
        Parameters:
        connectionListener - - connection listener
        Returns:
        id of listener
      • removeConnectionListener

        void removeConnectionListener​(int listenerId)
        Deprecated.
        Removes connection listener by id
        Parameters:
        listenerId - - id of connection listener
      • getNode

         address)
        Deprecated.
        Get Redis node by address in format: redis://host:port
        Parameters:
        address - of node
        Returns:
        node
      • getNodes

        <N> getNodes​(NodeType type)
        Deprecated.
        Get all Redis nodes by type
        Parameters:
        type - - type of node
        Returns:
        collection of nodes
      • getNodes

        <N> getNodes()
        Deprecated.
        All Redis nodes used by Redisson. This collection may change during master change, cluster topology update and etc.
        Returns:
        collection of nodes
      • pingAll

        boolean pingAll()
        Deprecated.
        Ping all Redis nodes. Default timeout per Redis node is 1000 milliseconds
        Returns:
        true if all nodes replied "PONG", false in other case.
      • pingAll

        boolean pingAll​(long timeout,
                         timeUnit)
        Deprecated.
        Ping all Redis nodes with specified timeout per node
        Returns:
        true if all nodes replied "PONG", false in other case.