@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 and Type | Method and Description |
---|---|
static int |
compareDelayed(Delayed o1,
Delayed o2) |
static long |
getRemainingTime(TimeUnit resultUnit,
long timeout) |
static <E extends Delayed> |
takeWithoutInterrupt(DelayQueue<E> queue) |
public static final DelayedUtil.DelayedWithTimeout DELAYED_POISON
public static <E extends Delayed> E takeWithoutInterrupt(DelayQueue<E> queue)
public static long getRemainingTime(TimeUnit resultUnit, long timeout)
Copyright © 2007–2019 Cloudera. All rights reserved.