Class RedisClientInfo

java.lang.Object
org.springframework.data.redis.core.types.RedisClientInfo

public class RedisClientInfo extends Object
RedisClientInfo provides general and statistical information about client connections.
Since:
1.3
Author:
Christoph Strobl
  • Constructor Details

  • Method Details

    • getAddressPort

      public String getAddressPort()
      Get address/port of the client.
      Returns:
    • getFileDescriptor

      public String getFileDescriptor()
      Get file descriptor corresponding to the socket
      Returns:
    • getName

      public String getName()
      Get the clients name.
      Returns:
    • getAge

      public Long getAge()
      Get total duration of the connection in seconds.
      Returns:
    • getIdle

      public Long getIdle()
      Get idle time of the connection in seconds.
      Returns:
    • getFlags

      public String getFlags()
      Get client flags.
      Returns:
    • getDatabaseId

      public Long getDatabaseId()
      Get current database index.
      Returns:
    • getChannelSubscribtions

      public Long getChannelSubscribtions()
      Get number of channel subscriptions.
      Returns:
    • getPatternSubscrbtions

      public Long getPatternSubscrbtions()
      Get number of pattern subscriptions.
      Returns:
    • getMultiCommandContext

      public Long getMultiCommandContext()
      Get the number of commands in a MULTI/EXEC context.
      Returns:
    • getBufferLength

      public Long getBufferLength()
      Get the query buffer length.
      Returns:
    • getBufferFreeSpace

      public Long getBufferFreeSpace()
      Get the free space of the query buffer.
      Returns:
    • getOutputBufferLength

      public Long getOutputBufferLength()
      Get the output buffer length.
      Returns:
    • getOutputListLength

      public Long getOutputListLength()
      Get number queued replies in output buffer.
      Returns:
    • getOutputBufferMemoryUsage

      public Long getOutputBufferMemoryUsage()
      Get output buffer memory usage.
      Returns:
    • getEvents

      public String getEvents()
      Get file descriptor events.
      Returns:
    • getLastCommand

      public String getLastCommand()
      Get last command played.
      Returns:
    • get

      public String get(RedisClientInfo.INFO info)
      Parameters:
      info - must not be null
      Returns:
      null if no entry found for requested RedisClientInfo.INFO.
    • get

      @Nullable public String get(String key)
      Parameters:
      key - must not be null or empty.
      Returns:
      null if no entry found for requested key.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object