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

com.github.edgar615.util.vertx.task.Tuple3TaskDelegate Maven / Gradle / Ivy

The newest version!
package com.github.edgar615.util.vertx.task;

import com.github.edgar615.util.vertx.function.Tuple3;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;

/**
 * Created by Edgar on 2016/7/29.
 *
 * @author Edgar  Date 2016/7/29
 */
class Tuple3TaskDelegate implements Tuple3Task {
  private final Task> task;

  Tuple3TaskDelegate(Task> task) {
    this.task = task;
  }

  @Override
  public Tuple3 result() {
    return task.result();
  }

  @Override
  public String name() {
    return task.name();
  }

  @Override
  public void complete(Tuple3 result) {
    task.complete(result);
  }

  @Override
  public void fail(Throwable throwable) {
    task.fail(throwable);
  }

  @Override
  public boolean isComplete() {
    return task.isComplete();
  }

  @Override
  public void setHandler(Handler>> handler) {
    task.setHandler(handler);
  }

  @Override
  public Handler>> completer() {
    return task.completer();
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy