Interface TargetFactory

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TargetFactory
Creates the object a scenario runs against (client, provider, log client, tracing handle).
  • Method Summary

    Modifier and Type
    Method
    Description
    create(Scenario scenario)
    Creates or returns the target for one scenario.
  • Method Details

    • create

      Object create(Scenario scenario) throws Exception
      Creates or returns the target for one scenario.
      Parameters:
      scenario - the scenario about to run (e.g. to read batchOptions)
      Returns:
      the target
      Throws:
      Exception - when the target cannot be created