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

io.vtom.vertx.pipeline.step.AbstractStepOUT Maven / Gradle / Ivy

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

import io.enoa.toolkit.collection.CollectionKit;
import io.vertx.core.Handler;
import io.vtom.vertx.pipeline.lifecycle.skip.Skip;

import java.util.List;

public abstract class AbstractStepOUT implements StepOUT {

  private List> skips;

  public AbstractStepOUT(List> skips) {
    this.skips = skips;
  }

  @Override
  public void skip(Skip skip) {
    if (CollectionKit.isEmpty(this.skips))
      return;
    this.skips.forEach(stepskip -> stepskip.handle(skip));
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy