Class RedisClientEntry

java.lang.Object
org.redisson.connection.RedisClientEntry
All Implemented Interfaces:
ClusterNode, Node, NodeAsync

public class RedisClientEntry extends Object implements ClusterNode
Author:
Nikita Koksharov
  • Constructor Details

  • Method Details

    • getType

      public NodeType getType()
      Description copied from interface: Node
      Returns node type
      Specified by:
      getType in interface Node
      Returns:
      node type
    • getClient

      public RedisClient getClient()
    • getAddr

      public InetSocketAddress getAddr()
      Description copied from interface: Node
      Get Redis node address
      Specified by:
      getAddr in interface Node
      Returns:
      node address
    • pingAsync

      public RFuture<Boolean> pingAsync()
      Specified by:
      pingAsync in interface NodeAsync
    • pingAsync

      public RFuture<Boolean> pingAsync(long timeout, TimeUnit timeUnit)
      Description copied from interface: NodeAsync
      Ping Redis node with specified timeout.
      Specified by:
      pingAsync in interface NodeAsync
      Parameters:
      timeout - - ping timeout
      timeUnit - - timeout unit
      Returns:
      true if "PONG" reply received, false otherwise
    • ping

      public boolean ping()
      Description copied from interface: Node
      Ping Redis node. Default timeout is 1000 milliseconds
      Specified by:
      ping in interface Node
      Returns:
      true if "PONG" reply received, false otherwise
    • ping

      public boolean ping(long timeout, TimeUnit timeUnit)
      Description copied from interface: Node
      Ping Redis node with specified timeout.
      Specified by:
      ping in interface Node
      Parameters:
      timeout - - ping timeout
      timeUnit - - timeout unit
      Returns:
      true if "PONG" reply received, false otherwise
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • timeAsync

      public RFuture<Time> timeAsync()
      Specified by:
      timeAsync in interface NodeAsync
    • time

      public Time time()
      Description copied from interface: Node
      Returns current Redis server time in seconds
      Specified by:
      time in interface Node
      Returns:
      time in seconds
    • clusterInfoAsync

      public RFuture<Map<String,String>> clusterInfoAsync()
      Specified by:
      clusterInfoAsync in interface NodeAsync
    • clusterInfo

      public Map<String,String> clusterInfo()
      Description copied from interface: ClusterNode
      Execute CLUSTER INFO operation.
      Specified by:
      clusterInfo in interface ClusterNode
      Returns:
      value mapped by field
    • info

      public Map<String,String> info(Node.InfoSection section)
      Specified by:
      info in interface Node
    • infoAsync

      public RFuture<Map<String,String>> infoAsync(Node.InfoSection section)
      Specified by:
      infoAsync in interface NodeAsync
    • toString

      public String toString()
      Overrides:
      toString in class Object