Class RedisClientInfo
java.lang.Object
org.springframework.data.redis.core.types.RedisClientInfo
RedisClientInfo
provides general and statistical information about client connections.- Since:
- 1.3
- Author:
- Christoph Strobl
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static class
-
Constructor Summary
ConstructorDescriptionRedisClientInfo
(Properties properties) CreateRedisClientInfo
fromProperties
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
get
(RedisClientInfo.INFO info) Get address/port of the client.getAge()
Get total duration of the connection in seconds.Get the free space of the query buffer.Get the query buffer length.Get number of channel subscriptions.Get current database index.Get file descriptor events.Get file descriptor corresponding to the socketgetFlags()
Get client flags.getIdle()
Get idle time of the connection in seconds.Get last command played.Get the number of commands in a MULTI/EXEC context.getName()
Get the clients name.Get the output buffer length.Get output buffer memory usage.Get number queued replies in output buffer.Get number of pattern subscriptions.int
hashCode()
toString()
-
Constructor Details
-
RedisClientInfo
CreateRedisClientInfo
fromProperties
.- Parameters:
properties
- must not be null.
-
-
Method Details
-
getAddressPort
Get address/port of the client.- Returns:
-
getFileDescriptor
Get file descriptor corresponding to the socket- Returns:
-
getName
Get the clients name.- Returns:
-
getAge
Get total duration of the connection in seconds.- Returns:
-
getIdle
Get idle time of the connection in seconds.- Returns:
-
getFlags
Get client flags.- Returns:
-
getDatabaseId
Get current database index.- Returns:
-
getChannelSubscribtions
Get number of channel subscriptions.- Returns:
-
getPatternSubscrbtions
Get number of pattern subscriptions.- Returns:
-
getMultiCommandContext
Get the number of commands in a MULTI/EXEC context.- Returns:
-
getBufferLength
Get the query buffer length.- Returns:
-
getBufferFreeSpace
Get the free space of the query buffer.- Returns:
-
getOutputBufferLength
Get the output buffer length.- Returns:
-
getOutputListLength
Get number queued replies in output buffer.- Returns:
-
getOutputBufferMemoryUsage
Get output buffer memory usage.- Returns:
-
getEvents
Get file descriptor events.- Returns:
-
getLastCommand
Get last command played.- Returns:
-
get
- Parameters:
info
- must not be null- Returns:
- null if no entry found for requested
RedisClientInfo.INFO
.
-
get
- Parameters:
key
- must not be null or empty.- Returns:
- null if no entry found for requested
key
.
-
toString
-
equals
-
hashCode
public int hashCode()
-