use of com.twitter.distributedlog.client.ClientConfig in project distributedlog by twitter.
the class TestProxyClientManager method createProxyClientManager.
private static ProxyClientManager createProxyClientManager(ProxyClient.Builder builder, HostProvider hostProvider, long periodicHandshakeIntervalMs) {
ClientConfig clientConfig = new ClientConfig();
clientConfig.setPeriodicHandshakeIntervalMs(periodicHandshakeIntervalMs);
clientConfig.setPeriodicOwnershipSyncIntervalMs(-1);
HashedWheelTimer dlTimer = new HashedWheelTimer(new ThreadFactoryBuilder().setNameFormat("TestProxyClientManager-timer-%d").build(), clientConfig.getRedirectBackoffStartMs(), TimeUnit.MILLISECONDS);
return new ProxyClientManager(clientConfig, builder, dlTimer, hostProvider, new ClientStats(NullStatsReceiver.get(), false, new DefaultRegionResolver()));
}
Aggregations