use of com.linkedin.restli.client.ParSeqRestClient in project rest.li by linkedin.
the class TestParSeqRestClient method setUp.
@SuppressWarnings("deprecation")
@BeforeClass
public void setUp() throws Exception {
super.init();
final int numCores = Runtime.getRuntime().availableProcessors();
_scheduler = Executors.newScheduledThreadPool(numCores + 1);
_engine = new EngineBuilder().setTaskExecutor(_scheduler).setTimerScheduler(_scheduler).build();
_restClient = new ParSeqRestClient(getClient());
}
Aggregations