use of com.linkedin.restli.client.ParSeqRestliClientConfig in project rest.li by linkedin.
the class TestParSeqBasedFluentClientApiWithExecutionGroup method setUp.
@BeforeClass
void setUp() throws Exception {
super.init(Arrays.asList(new RestLiValidationFilter()));
ParSeqRestliClientConfig config = new ParSeqRestliClientConfigBuilder().addBatchingEnabled("*.*/*.*", Boolean.TRUE).addMaxBatchSize("*.*/*.*", TEST_BATCH_SIZE).build();
BatchingSupport batchingSupport = new BatchingSupport();
_parSeqUnitTestHelper = new ParSeqUnitTestHelper(engineBuilder -> {
engineBuilder.setPlanDeactivationListener(batchingSupport);
});
_parSeqUnitTestHelper.setUp();
_parSeqRestliClient = // RestClient Registered Strategy
new ParSeqRestliClientBuilder().setBatchingSupport(batchingSupport).setClient(getClient()).setConfig(config).build();
}
Aggregations