Interface NodesGroup<N extends Node>

    • 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

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

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

        Collection<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 timeUnit)
        Deprecated.
        Ping all Redis nodes with specified timeout per node
        Returns:
        true if all nodes replied "PONG", false in other case.