public class TimeoutProvider extends Object
TimeoutOptions| Constructor and Description |
|---|
TimeoutProvider(Supplier<TimeoutOptions> timeoutOptionsSupplier,
LongSupplier defaultTimeoutNsSupplier)
|
| Modifier and Type | Method and Description |
|---|---|
long |
getTimeoutNs(RedisCommand<?,?,?> command)
Returns the timeout in
TimeUnit.NANOSECONDS for RedisCommand. |
public TimeoutProvider(Supplier<TimeoutOptions> timeoutOptionsSupplier, LongSupplier defaultTimeoutNsSupplier)
timeoutOptionsSupplier - must not be null.defaultTimeoutNsSupplier - must not be null.public long getTimeoutNs(RedisCommand<?,?,?> command)
TimeUnit.NANOSECONDS for RedisCommand.command - the command.TimeUnit.NANOSECONDS.Copyright © 2021 lettuce.io. All rights reserved.