All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vtom.vertx.pipeline.component.timer.VtomTimerRunnable Maven / Gradle / Ivy

There is a newer version: 1.1-beta
Show newest version
package io.vtom.vertx.pipeline.component.timer;

import io.vertx.core.AsyncResult;
import io.vertx.core.Future;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import io.vtom.vertx.pipeline.PipeRunnable;
import io.vtom.vertx.pipeline.step.Step;

class VtomTimerRunnable implements PipeRunnable {

  private Vertx vertx;
  private Step step;

  VtomTimerRunnable(Vertx vertx, Step step) {
    this.vertx = vertx;
    this.step = step;
  }

  @Override
  public Step step() {
    return this.step;
  }

  @Override
  public void call(VtmTimerOut stepout, Handler> handler) {
    stepout.execute(this.vertx, handler);
  }

  @Override
  public void release(boolean ok, Handler> handler) {
    handler.handle(Future.succeededFuture());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy