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

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

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

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

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

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

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

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

  @Override
  public void complete(Tuple5 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