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

io.vtom.vertx.pipeline.component.fs.action.AbstractFsAction Maven / Gradle / Ivy

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

import io.vertx.core.Handler;
import io.vtom.vertx.pipeline.lifecycle.skip.Skip;

import java.util.ArrayList;
import java.util.List;

public abstract class AbstractFsAction implements Fs {

  private String path;
  private List> stepskips;

  public AbstractFsAction(String path) {
    this.path = path;
  }

  protected String path() {
    return this.path;
  }

  @Override
  public T skip(Handler stepskip) {
    if (this.stepskips == null)
      this.stepskips = new ArrayList<>();
    this.stepskips.add(stepskip);
    return (T) this;
  }

  protected List> stepskips() {
    return this.stepskips;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy