public interface ReactiveClusterServerCommands extends ReactiveServerCommands
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<String> |
bgReWriteAof(RedisClusterNode node)
Start an Append Only File rewrite process on the specific server.
|
reactor.core.publisher.Mono<String> |
bgSave(RedisClusterNode node)
Start background saving of db on server.
|
reactor.core.publisher.Mono<Long> |
dbSize(RedisClusterNode node)
Get the total number of available keys in currently selected database.
|
reactor.core.publisher.Mono<String> |
flushAll(RedisClusterNode node)
Delete all all keys from all databases.
|
reactor.core.publisher.Mono<String> |
flushAll(RedisClusterNode node,
RedisServerCommands.FlushOption option)
Delete all all keys from all databases using the specified
RedisServerCommands.FlushOption . |
reactor.core.publisher.Mono<String> |
flushDb(RedisClusterNode node)
Delete all keys of the currently selected database.
|
reactor.core.publisher.Mono<String> |
flushDb(RedisClusterNode node,
RedisServerCommands.FlushOption option)
Delete all keys of the currently selected database using the specified
RedisServerCommands.FlushOption . |
reactor.core.publisher.Flux<RedisClientInfo> |
getClientList(RedisClusterNode node)
Request information and statistics about connected clients.
|
reactor.core.publisher.Mono<Properties> |
getConfig(RedisClusterNode node,
String pattern)
Load configuration parameters for given
pattern from server. |
reactor.core.publisher.Mono<Properties> |
info(RedisClusterNode node)
Load default server information like
memory
cpu utilization
replication
|
reactor.core.publisher.Mono<Properties> |
info(RedisClusterNode node,
String section)
Load server information for given
selection . |
reactor.core.publisher.Mono<Long> |
lastSave(RedisClusterNode node)
Get time unix timestamp of last successful
ReactiveServerCommands.bgSave() operation in seconds. |
reactor.core.publisher.Mono<String> |
resetConfigStats(RedisClusterNode node)
Reset statistic counters on server.
|
reactor.core.publisher.Mono<String> |
save(RedisClusterNode node)
Synchronous save current db snapshot on server.
|
reactor.core.publisher.Mono<String> |
setConfig(RedisClusterNode node,
String param,
String value)
Set server configuration for
param to value . |
reactor.core.publisher.Mono<Long> |
time(RedisClusterNode node)
Request server timestamp using
TIME command. |
bgReWriteAof, bgSave, dbSize, flushAll, flushAll, flushDb, flushDb, getClientList, getClientName, getConfig, info, info, killClient, lastSave, resetConfigStats, save, setClientName, setConfig, time, time
reactor.core.publisher.Mono<String> bgReWriteAof(RedisClusterNode node)
node
- must not be null.Mono
indicating command completion.IllegalArgumentException
- when node
is null.RedisServerCommands.bgReWriteAof()
reactor.core.publisher.Mono<String> bgSave(RedisClusterNode node)
node
- must not be null.Mono
indicating command received by server. Operation success needs to be checked via
lastSave(RedisClusterNode)
.IllegalArgumentException
- when node
is null.RedisServerCommands.bgSave()
reactor.core.publisher.Mono<Long> lastSave(RedisClusterNode node)
ReactiveServerCommands.bgSave()
operation in seconds.node
- must not be null.Mono
wrapping unix timestamp.IllegalArgumentException
- when node
is null.RedisServerCommands.lastSave()
reactor.core.publisher.Mono<String> save(RedisClusterNode node)
node
- must not be null.Mono
indicating command completion.IllegalArgumentException
- when node
is null.RedisServerCommands.save()
reactor.core.publisher.Mono<Long> dbSize(RedisClusterNode node)
node
- must not be null.Mono
wrapping number of keys.IllegalArgumentException
- when node
is null.RedisServerCommands.dbSize()
reactor.core.publisher.Mono<String> flushDb(RedisClusterNode node)
node
- must not be null. Mono
indicating command completion.IllegalArgumentException
- when node
is null.RedisServerCommands.flushDb()
reactor.core.publisher.Mono<String> flushDb(RedisClusterNode node, RedisServerCommands.FlushOption option)
RedisServerCommands.FlushOption
.node
- must not be null. Mono
indicating command completion.option
- IllegalArgumentException
- when node
is null.RedisServerCommands.flushDb(FlushOption)
reactor.core.publisher.Mono<String> flushAll(RedisClusterNode node)
node
- must not be null.Mono
indicating command completion.IllegalArgumentException
- when node
is null.RedisServerCommands.flushAll()
reactor.core.publisher.Mono<String> flushAll(RedisClusterNode node, RedisServerCommands.FlushOption option)
RedisServerCommands.FlushOption
.node
- must not be null.option
- Mono
indicating command completion.IllegalArgumentException
- when node
is null.RedisServerCommands.flushAll(FlushOption)
reactor.core.publisher.Mono<Properties> info(RedisClusterNode node)
node
- must not be null.Mono
wrapping server information.IllegalArgumentException
- when node
is null.RedisServerCommands.info()
reactor.core.publisher.Mono<Properties> info(RedisClusterNode node, String section)
selection
.node
- must not be null.section
- must not be null nor empty.Mono
wrapping server information of given section
.IllegalArgumentException
- when node
is null.IllegalArgumentException
- when section is null or empty.RedisServerCommands.info(String)
reactor.core.publisher.Mono<Properties> getConfig(RedisClusterNode node, String pattern)
pattern
from server.node
- must not be null.pattern
- must not be null.Mono
wrapping configuration parameters matching given pattern
.IllegalArgumentException
- when node
is null.IllegalArgumentException
- when pattern
is null or empty.RedisServerCommands.getConfig(String)
reactor.core.publisher.Mono<String> setConfig(RedisClusterNode node, String param, String value)
param
to value
.node
- must not be null.param
- must not be null nor empty.value
- must not be null nor empty.IllegalArgumentException
- when node
is null.IllegalArgumentException
- when pattern
/ value
is null or empty.RedisServerCommands.setConfig(String, String)
reactor.core.publisher.Mono<String> resetConfigStats(RedisClusterNode node)
ReactiveServerCommands.info()
.node
- must not be null.Mono
indicating command completion.IllegalArgumentException
- when node
is null.RedisServerCommands.resetConfigStats()
reactor.core.publisher.Mono<Long> time(RedisClusterNode node)
TIME
command.node
- must not be null.Mono
wrapping current server time in milliseconds.IllegalArgumentException
- when node
is null.RedisServerCommands.time()
reactor.core.publisher.Flux<RedisClientInfo> getClientList(RedisClusterNode node)
node
- must not be null.Flux
emitting RedisClientInfo
objects.IllegalArgumentException
- when node
is null.RedisServerCommands.getClientList()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.