Constructor and Description |
---|
AwaitingConsumer() |
Modifier and Type | Method and Description |
---|---|
void |
accept(T t) |
boolean |
await() |
boolean |
await(long time,
TimeUnit unit) |
T |
awaitAndGet() |
static <T> AwaitingConsumer<T> |
create() |
T |
get() |
boolean |
isAvailable() |
public static <T> AwaitingConsumer<T> create()
public T get()
public boolean isAvailable()
public boolean await() throws InterruptedException
InterruptedException
public boolean await(long time, TimeUnit unit) throws InterruptedException
InterruptedException
public T awaitAndGet() throws InterruptedException
InterruptedException
Copyright © 2020. All rights reserved.