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
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic class -
Constructor Summary
ConstructorsConstructorDescriptionRedisClientInfo(Properties properties) CreateRedisClientInfofromProperties. -
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable String@Nullable Stringget(RedisClientInfo.INFO info) @Nullable StringGet address/port of the client.@Nullable LonggetAge()Get total duration of the connection in seconds.@Nullable LongGet the free space of the query buffer.@Nullable LongGet the query buffer length.@Nullable LongGet number of channel subscriptions.@Nullable LongGet current database index.@Nullable StringGet file descriptor events.@Nullable StringGet file descriptor corresponding to the socket@Nullable StringgetFlags()Get client flags.@Nullable LonggetIdle()Get idle time of the connection in seconds.@Nullable StringGet last command played.@Nullable LongGet the number of commands in a MULTI/EXEC context.@Nullable StringgetName()Get the clients name.@Nullable LongGet the output buffer length.@Nullable LongGet output buffer memory usage.@Nullable LongGet number queued replies in output buffer.@Nullable LongGet number of pattern subscriptions.inthashCode()toString()
-
Constructor Details
-
RedisClientInfo
CreateRedisClientInfofromProperties.- Parameters:
properties- must not be null.
-
-
Method Details
-
getAddressPort
-
getFileDescriptor
Get file descriptor corresponding to the socket- Returns:
-
getName
-
getAge
-
getIdle
-
getFlags
-
getDatabaseId
-
getChannelSubscribtions
-
getPatternSubscrbtions
-
getMultiCommandContext
Get the number of commands in a MULTI/EXEC context.- Returns:
-
getBufferLength
-
getBufferFreeSpace
-
getOutputBufferLength
-
getOutputListLength
-
getOutputBufferMemoryUsage
-
getEvents
-
getLastCommand
-
get
- Parameters:
info- must not be null- Returns:
- null if no entry found for requested
RedisClientInfo.INFO.
-
get
-
toString
-
equals
-
hashCode
-