public class PeriodicComponentImpl extends Object implements io.apiman.gateway.engine.components.IPeriodicComponent
IPeriodicComponent.
A unique IDs are generated for each timer via a non-blocking AtomicInteger, with the (unlikely to
be achieved) limitation that these will eventually start overwriting once the bounds of Long are
surpassed.| Constructor and Description |
|---|
PeriodicComponentImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelAll() |
void |
cancelTimer(long timerId) |
long |
setOneshotTimer(long deltaMillis,
io.apiman.gateway.engine.async.IAsyncHandler<Long> timerHandler) |
long |
setPeriodicTimer(long periodMillis,
long initialDelayMillis,
io.apiman.gateway.engine.async.IAsyncHandler<Long> periodicHandler) |
public long setPeriodicTimer(long periodMillis,
long initialDelayMillis,
io.apiman.gateway.engine.async.IAsyncHandler<Long> periodicHandler)
setPeriodicTimer in interface io.apiman.gateway.engine.components.IPeriodicComponentIPeriodicComponent.setPeriodicTimer(long, long,
io.apiman.gateway.engine.async.IAsyncHandler)public long setOneshotTimer(long deltaMillis,
io.apiman.gateway.engine.async.IAsyncHandler<Long> timerHandler)
setOneshotTimer in interface io.apiman.gateway.engine.components.IPeriodicComponentIPeriodicComponent.setOneshotTimer(long,
io.apiman.gateway.engine.async.IAsyncHandler)public void cancelTimer(long timerId)
cancelTimer in interface io.apiman.gateway.engine.components.IPeriodicComponentIPeriodicComponent.cancelTimer(long)public void cancelAll()
cancelAll in interface io.apiman.gateway.engine.components.IPeriodicComponentIPeriodicComponent.cancelAll()Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.