| Package | Description |
|---|---|
| io.atlassian.util.concurrent |
| Modifier and Type | Method and Description |
|---|---|
static Timeout |
Timeout.getMillisTimeout(long time,
TimeUnit unit)
Get a
Timeout that uses millisecond
precision. |
static Timeout |
Timeout.getNanosTimeout(long time,
TimeUnit unit)
Get a
Timeout that uses nanosecond
precision. |
| Modifier and Type | Method and Description |
|---|---|
static Supplier<Timeout> |
Timeout.timeoutFactory(long time,
TimeUnit unit,
Timeout.TimeSupplier supplier)
Factory for creating timeouts of the specified duration.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
CompletionStages.unsafeBlockAndGet(CompletionStage<T> completionStage,
Timeout timeout,
Function<Throwable,? extends T> onError)
Block and retrieve the value from a
CompletionStage or handle the
associated error. |
Copyright © 2016 Atlassian. All rights reserved.