public interface Timeout
| Modifier and Type | Field and Description |
|---|---|
static Timeout |
NO_TIMEOUT |
| Modifier and Type | Method and Description |
|---|---|
static Timeout |
boundedTimeout(TimeMeter clientClock,
long requestTimeoutNanos) |
<T> T |
call(Function<Optional<Long>,T> timeBoundedOperation) |
<T> CompletableFuture<T> |
callAsync(Function<Optional<Long>,CompletableFuture<T>> timeBoundedOperation) |
static Timeout |
notSpecifiedTimeout() |
static Timeout |
of(ClientSideConfig clientSideConfig) |
void |
run(Consumer<Optional<Long>> timeBoundedOperation) |
static final Timeout NO_TIMEOUT
<T> CompletableFuture<T> callAsync(Function<Optional<Long>,CompletableFuture<T>> timeBoundedOperation)
static Timeout of(ClientSideConfig clientSideConfig)
static Timeout notSpecifiedTimeout()
Copyright © 2024. All rights reserved.