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