@InterfaceAudience.Private @InterfaceStability.Evolving public final class DelayedUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DelayedUtil.DelayedContainer<T> |
static class |
DelayedUtil.DelayedContainerWithTimestamp<T>
Has a timeout.
|
static class |
DelayedUtil.DelayedObject |
static interface |
DelayedUtil.DelayedWithTimeout
Add a timeout to a Delay
|
Modifier and Type | Field and Description |
---|---|
static DelayedUtil.DelayedWithTimeout |
DELAYED_POISON
POISON implementation; used to mark special state: e.g.
|
Modifier | Constructor and Description |
---|---|
private |
DelayedUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
compareDelayed(Delayed o1,
Delayed o2) |
static long |
getRemainingTime(TimeUnit resultUnit,
long timeout) |
private static long |
getTimeout(Delayed o) |
static <E extends Delayed> |
takeWithoutInterrupt(DelayQueue<E> queue) |
public static final DelayedUtil.DelayedWithTimeout DELAYED_POISON
private DelayedUtil()
public static <E extends Delayed> E takeWithoutInterrupt(DelayQueue<E> queue)
public static long getRemainingTime(TimeUnit resultUnit, long timeout)
public static int compareDelayed(Delayed o1, Delayed o2)
private static long getTimeout(Delayed o)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.