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

io.hyperfoil.hotrod.steps.HotRodOperationBuilder Maven / Gradle / Ivy

There is a newer version: 0.26
Show newest version
package io.hyperfoil.hotrod.steps;

import io.hyperfoil.api.config.BuilderBase;
import io.hyperfoil.api.session.Session;
import io.hyperfoil.function.SerializableFunction;
import io.hyperfoil.hotrod.api.HotRodOperation;

@FunctionalInterface
public interface HotRodOperationBuilder extends BuilderBase {
   SerializableFunction build();

   class Provided implements SerializableFunction {
      private final HotRodOperation operation;

      public Provided(HotRodOperation operation) {
         this.operation = operation;
      }

      @Override
      public HotRodOperation apply(Session o) {
         return operation;
      }
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy