public abstract static class TimeoutOptions.TimeoutSource extends Object
RedisCommand.| Constructor and Description |
|---|
TimeoutSource() |
| Modifier and Type | Method and Description |
|---|---|
abstract long |
getTimeout(RedisCommand<?,?,?> command)
Obtains the timeout for a
RedisCommand. |
TimeUnit |
getTimeUnit() |
public abstract long getTimeout(RedisCommand<?,?,?> command)
RedisCommand. All timeouts must be specified in getTimeUnit(). Values
greater zero will timeout the command. Values less or equal to zero do not timeout the command.
command may be null if a timeout is required but the command is not yet known, e.g. when the timeout is
required but a connect did not finish yet.
command - can be null.-1 applies the default timeout configured on
the connection.Copyright © 2021 lettuce.io. All rights reserved.