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 @Nullable String getAddressPort()
      Get address/port of the client.
      Returns:
    • getFileDescriptor

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public @Nullable 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