Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2011-2024 GatlingCorp (https://gatling.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.gatling.javaapi.core;
import edu.umd.cs.findbugs.annotations.NonNull;
import io.gatling.core.feeder.BatchableFeederBuilder;
import io.gatling.core.feeder.SeparatedValuesParser;
import io.gatling.javaapi.core.internal.Converters;
import java.util.List;
import java.util.Map;
import java.util.function.BiFunction;
import java.util.function.Function;
import java.util.stream.Collectors;
/**
* Builder of feeders, ie sources of data that are shared amongst all virtual users. Typically
* backed by an underlying resource, such as a CSV file.
*
*
Immutable so each method doesn't mutate the current instance but returns a new one.
*
* @param the type of values the feeder will provide
*/
public interface FeederBuilder {
/**
* Set a queue strategy. Records will be provided in the same order as defined in the underlying
* source. A given record will only be provided once. The run will be immediately stopped if the
* feeder runs out of records.
*
* @return a new FeederBuilder
*/
@NonNull
FeederBuilder queue();
/**
* Set a random strategy. Records will be provided in a random order, unrelated to the order in
* the underlying source. A given record can be provided multiple times. Such feeder will never
* run out of records.
*
* @return a new FeederBuilder
*/
@NonNull
FeederBuilder random();
/**
* Set a shuffle strategy. Records will be provided in a random order, unrelated to the order in
* the underlying source. A given record will only be provided once. The run will be immediately
* stopped if the feeder runs out of records.
*
* @return a new FeederBuilder
*/
@NonNull
FeederBuilder shuffle();
/**
* Set a circular strategy. Records will be provided in the same order as defined in the
* underlying source. Once the last record of the underlying source is reached, the feeder will go
* back to the first record. A given record can be provided multiple times. Such feeder will never
* run out of records.
*
* @return a new FeederBuilder
*/
@NonNull
FeederBuilder circular();
/**
* Provide a function to transform records as defined in the underlying source
*
* @param f the transformation function
* @return a new FeederBuilder
*/
@NonNull
FeederBuilder