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

io.hyperfoil.core.steps.BaseStep Maven / Gradle / Ivy

There is a newer version: 0.27.1
Show newest version
package io.hyperfoil.core.steps;

import java.util.concurrent.atomic.AtomicInteger;

import io.hyperfoil.api.config.Sequence;
import io.hyperfoil.api.config.Step;
import io.hyperfoil.function.SerializableSupplier;

public abstract class BaseStep implements Step {
   private static final AtomicInteger idCounter = new AtomicInteger();

   private final int id = idCounter.incrementAndGet();
   private final SerializableSupplier sequence;

   public BaseStep(SerializableSupplier sequence) {
      this.sequence = sequence;
   }

   public Sequence sequence() {
      return sequence.get();
   }

   public int id() {
      return id;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy