public class SimpleTimerState extends Object implements TimerState.Mutable
TimerState.Mutable| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_INITIAL_CAPACITY |
| Constructor and Description |
|---|
SimpleTimerState() |
SimpleTimerState(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(long id,
int type,
long time,
long timeout) |
int |
count() |
boolean |
hasTimer(long id) |
long |
id(int index) |
int |
indexById(long id) |
void |
remove(int index) |
long |
time(int index) |
long |
timeout(int index) |
int |
type(int index) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremoveByIddeadline, indexOfNextDeadlinepublic static final int DEFAULT_INITIAL_CAPACITY
public SimpleTimerState()
public SimpleTimerState(int initialCapacity)
public int count()
count in interface TimerStatepublic boolean hasTimer(long id)
hasTimer in interface TimerStatepublic long id(int index)
id in interface TimerStatepublic int type(int index)
type in interface TimerStatepublic long time(int index)
time in interface TimerStatepublic long timeout(int index)
timeout in interface TimerStatepublic int indexById(long id)
indexById in interface TimerStatepublic void remove(int index)
remove in interface TimerState.Mutablepublic boolean add(long id,
int type,
long time,
long timeout)
add in interface TimerState.MutableCopyright © 2020 tools4j.org (Marco Terzer, Anton Anufriev). All Rights Reserved.