Interface NodesGroup<N extends Node>

    • Method Detail

      • addConnectionListener

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

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

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

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

        Collection<N> getNodes()
        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()
        Ping all Redis nodes
        Returns:
        true if all nodes have replied "PONG", false in other case.