Package org.redisson

Class RedisNodes<N extends Node>

  • Type Parameters:
    N - node type
    All Implemented Interfaces:
    NodesGroup<N>
    Direct Known Subclasses:
    RedisClusterNodes

    public class RedisNodes<N extends Node>
    extends 
    implements NodesGroup<N>
    Deprecated.
    Author:
    Nikita Koksharov
    • Method Detail

      • getNode

        public  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 <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 <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)
        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