use of com.linkedin.parseq.batching.BatchingSupport 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();
}
use of com.linkedin.parseq.batching.BatchingSupport in project parseq by linkedin.
the class TaskBatchingClientExample method customizeEngine.
@Override
protected void customizeEngine(com.linkedin.parseq.EngineBuilder engineBuilder) {
BatchingSupport batchingSupport = new BatchingSupport();
batchingSupport.registerStrategy(batchingStrategy);
engineBuilder.setPlanDeactivationListener(batchingSupport);
}
use of com.linkedin.parseq.batching.BatchingSupport in project parseq by linkedin.
the class BatchingClientExample method customizeEngine.
@Override
protected void customizeEngine(com.linkedin.parseq.EngineBuilder engineBuilder) {
BatchingSupport batchingSupport = new BatchingSupport();
batchingSupport.registerStrategy(batchingStrategy);
engineBuilder.setPlanDeactivationListener(batchingSupport);
}
Aggregations