com.github.edgar615.util.vertx.task.Tuple4TaskDelegate Maven / Gradle / Ivy
package com.github.edgar615.util.vertx.task;
import com.github.edgar615.util.vertx.function.Tuple4;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
/**
* Created by Edgar on 2016/7/29.
*
* @author Edgar Date 2016/7/29
*/
class Tuple4TaskDelegate implements Tuple4Task {
private final Task> task;
Tuple4TaskDelegate(Task> task) {
this.task = task;
}
@Override
public Tuple4 result() {
return task.result();
}
@Override
public String name() {
return task.name();
}
@Override
public void complete(Tuple4 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();
}
}