public class PeriodicComponentImpl extends Object implements io.apiman.gateway.engine.components.IPeriodicComponent
IPeriodicComponent.| Constructor and Description |
|---|
PeriodicComponentImpl(org.vertx.java.core.Vertx vertx,
VertxEngineConfig engineConfig,
Map<String,String> config) |
| 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 PeriodicComponentImpl(org.vertx.java.core.Vertx vertx,
VertxEngineConfig engineConfig,
Map<String,String> config)
vertx - the vertx instanceengineConfig - the engine configconfig - the configpublic 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.