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

io.vtom.vertx.pipeline.PipePromise Maven / Gradle / Ivy

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

import io.enoa.promise.DoneArgPromise;
import io.enoa.promise.arg.PromiseArg;
import io.enoa.promise.arg.PromiseCapture;
import io.enoa.promise.arg.PromiseVoid;
import io.vtom.vertx.pipeline.lifecycle.PipeLifecycle;

public class PipePromise implements DoneArgPromise {

  private DoneArgPromise promise;

  public PipePromise(DoneArgPromise promise) {
    this.promise = promise;
  }

  @Override
  public PipePromise done(PromiseArg done) {
    this.promise.done(done);
    return this;
  }

  @Override
  public PipePromise capture(PromiseCapture capture) {
    this.promise.capture(capture);
    return this;
  }

  @Override
  public void always(PromiseVoid always) {
    this.promise.always(always);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy