com.arextest.storage.mock.MockResultProvider Maven / Gradle / Ivy
package com.arextest.storage.mock;
import com.arextest.model.mock.MockCategoryType;
import com.arextest.model.mock.Mocker;
import java.util.List;
import javax.validation.constraints.NotNull;
/**
* @author jmo
* @since 2021/11/9
*/
public interface MockResultProvider {
boolean putRecordResult(MockCategoryType categoryType, String recordId,
Iterable values);
boolean putReplayResult(T value);
byte[] getRecordResult(@NotNull Mocker mockItem, MockResultContext context);
List getRecordResultList(MockCategoryType category, String recordId);
List getReplayResultList(MockCategoryType category, String replayId);
int replayResultCount(MockCategoryType category, String replayResultId);
int recordResultCount(MockCategoryType category, String recordId);
boolean removeRecordResult(MockCategoryType category, String recordId,
Iterable values);
/**
* Calculate the eigen values of the request body.
*/
void calculateEigen(@NotNull Mocker item, boolean queryConfig);
}