Search in sources :

Example 1 with ParSeqRestClient

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());
}
Also used : ParSeqRestClient(com.linkedin.restli.client.ParSeqRestClient) EngineBuilder(com.linkedin.parseq.EngineBuilder) BeforeClass(org.testng.annotations.BeforeClass)

Aggregations

EngineBuilder (com.linkedin.parseq.EngineBuilder)1 ParSeqRestClient (com.linkedin.restli.client.ParSeqRestClient)1 BeforeClass (org.testng.annotations.BeforeClass)1