class TimeoutChecker<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
private T |
pending |
private long |
timeoutNanos |
private long |
timestamp |
| Constructor and Description |
|---|
TimeoutChecker(TimeUnit unit,
long timeout) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(T current) |
static <T> TimeoutChecker<T> |
create(TimeUnit unit,
long timeout) |
private final long timeoutNanos
private T pending
private long timestamp
public TimeoutChecker(TimeUnit unit, long timeout)
public boolean check(T current)
public static <T> TimeoutChecker<T> create(TimeUnit unit, long timeout)
Copyright © 2015 Spotify AB. All Rights Reserved.