private ConnectionFactoryBuilder newConnectionFactoryBuilder(final Config conf) { ConnectionFactoryBuilder builder = new ConnectionFactoryBuilder(); ifset(conf, "authWaitTime", path -> builder .setAuthWaitTime(conf.getDuration(path, TimeUnit.MILLISECONDS))); ifset(conf, "daemon", path -> builder.setDaemon(conf.getBoolean(path))); ifset(conf, "enableMetrics", path -> builder .setEnableMetrics(enumFor(conf.getString(path), MetricType.values()))); ifset(conf, "failureMode", path -> builder .setFailureMode(enumFor(conf.getString(path), FailureMode.values()))); ifset(conf, "locator", path -> builder .setLocatorType(enumFor(conf.getString(path), Locator.values()))); ifset(conf, "maxReconnectDelay", path -> builder .setMaxReconnectDelay(conf.getDuration(path, TimeUnit.SECONDS))); ifset(conf, "opQueueMaxBlockTime", path -> builder .setOpQueueMaxBlockTime(conf.getDuration(path, TimeUnit.MILLISECONDS))); ifset(conf, "opTimeout", path -> builder .setOpTimeout(conf.getDuration(path, TimeUnit.MILLISECONDS))); ifset(conf, "protocol", path -> builder .setProtocol(enumFor(conf.getString(path), Protocol.values()))); ifset(conf, "readBufferSize", path -> builder .setReadBufferSize(conf.getInt(path))); ifset(conf, "shouldOptimize", path -> builder .setShouldOptimize(conf.getBoolean(path))); ifset(conf, "timeoutExceptionThreshold", path -> builder .setTimeoutExceptionThreshold(conf.getInt(path))); ifset(conf, "useNagleAlgorithm", path -> builder .setUseNagleAlgorithm(conf.getBoolean(path))); return builder; }
public void setTimeoutExceptionThreshold(final int to) { connectionFactoryBuilder.setTimeoutExceptionThreshold(to); }
public void setTimeoutExceptionThreshold(final int to) { connectionFactoryBuilder.setTimeoutExceptionThreshold(to); }
public void setTimeoutExceptionThreshold(final int to) { connectionFactoryBuilder.setTimeoutExceptionThreshold(to); }
public void setTimeoutExceptionThreshold(final int to) { connectionFactoryBuilder.setTimeoutExceptionThreshold(to); }
private ConnectionFactoryBuilder newConnectionFactoryBuilder(final Config conf) { ConnectionFactoryBuilder builder = new ConnectionFactoryBuilder(); ifset(conf, "authWaitTime", path -> builder .setAuthWaitTime(conf.getDuration(path, TimeUnit.MILLISECONDS))); ifset(conf, "daemon", path -> builder.setDaemon(conf.getBoolean(path))); ifset(conf, "enableMetrics", path -> builder .setEnableMetrics(enumFor(conf.getString(path), MetricType.values()))); ifset(conf, "failureMode", path -> builder .setFailureMode(enumFor(conf.getString(path), FailureMode.values()))); ifset(conf, "locator", path -> builder .setLocatorType(enumFor(conf.getString(path), Locator.values()))); ifset(conf, "maxReconnectDelay", path -> builder .setMaxReconnectDelay(conf.getDuration(path, TimeUnit.SECONDS))); ifset(conf, "opQueueMaxBlockTime", path -> builder .setOpQueueMaxBlockTime(conf.getDuration(path, TimeUnit.MILLISECONDS))); ifset(conf, "opTimeout", path -> builder .setOpTimeout(conf.getDuration(path, TimeUnit.MILLISECONDS))); ifset(conf, "protocol", path -> builder .setProtocol(enumFor(conf.getString(path), Protocol.values()))); ifset(conf, "readBufferSize", path -> builder .setReadBufferSize(conf.getInt(path))); ifset(conf, "shouldOptimize", path -> builder .setShouldOptimize(conf.getBoolean(path))); ifset(conf, "timeoutExceptionThreshold", path -> builder .setTimeoutExceptionThreshold(conf.getInt(path))); ifset(conf, "useNagleAlgorithm", path -> builder .setUseNagleAlgorithm(conf.getBoolean(path))); return builder; }
public ConnectionFactoryBuilder(ConnectionFactory cf) { setAuthDescriptor(cf.getAuthDescriptor()); setDaemon(cf.isDaemon()); setFailureMode(cf.getFailureMode()); setHashAlg(cf.getHashAlg()); setInitialObservers(cf.getInitialObservers()); setMaxReconnectDelay(cf.getMaxReconnectDelay()); setOpQueueMaxBlockTime(cf.getOpQueueMaxBlockTime()); setOpTimeout(cf.getOperationTimeout()); setReadBufferSize(cf.getReadBufSize()); setShouldOptimize(cf.shouldOptimize()); setTimeoutExceptionThreshold(cf.getTimeoutExceptionThreshold()); setTranscoder(cf.getDefaultTranscoder()); setUseNagleAlgorithm(cf.useNagleAlgorithm()); }
public ConnectionFactoryBuilder(ConnectionFactory cf) { setAuthDescriptor(cf.getAuthDescriptor()); setDaemon(cf.isDaemon()); setFailureMode(cf.getFailureMode()); setHashAlg(cf.getHashAlg()); setInitialObservers(cf.getInitialObservers()); setMaxReconnectDelay(cf.getMaxReconnectDelay()); setOpQueueMaxBlockTime(cf.getOpQueueMaxBlockTime()); setOpTimeout(cf.getOperationTimeout()); setReadBufferSize(cf.getReadBufSize()); setShouldOptimize(cf.shouldOptimize()); setTimeoutExceptionThreshold(cf.getTimeoutExceptionThreshold()); setTranscoder(cf.getDefaultTranscoder()); setUseNagleAlgorithm(cf.useNagleAlgorithm()); setEnableMetrics(cf.enableMetrics()); setListenerExecutorService(cf.getListenerExecutorService()); setAuthWaitTime(cf.getAuthWaitTime()); }
public ConnectionFactoryBuilder(ConnectionFactory cf) { setClientMode(cf.getClientMode()); setAuthDescriptor(cf.getAuthDescriptor()); setDaemon(cf.isDaemon()); setFailureMode(cf.getFailureMode()); setHashAlg(cf.getHashAlg()); setInitialObservers(cf.getInitialObservers()); setMaxReconnectDelay(cf.getMaxReconnectDelay()); setOpQueueMaxBlockTime(cf.getOpQueueMaxBlockTime()); setOpTimeout(cf.getOperationTimeout()); setReadBufferSize(cf.getReadBufSize()); setShouldOptimize(cf.shouldOptimize()); setTimeoutExceptionThreshold(cf.getTimeoutExceptionThreshold()); setTranscoder(cf.getDefaultTranscoder()); setUseNagleAlgorithm(cf.useNagleAlgorithm()); setEnableMetrics(cf.enableMetrics()); setListenerExecutorService(cf.getListenerExecutorService()); setAuthWaitTime(cf.getAuthWaitTime()); }
builder.setTimeoutExceptionThreshold(conf.getTimeoutExceptionThreshold());
builder.setTimeoutExceptionThreshold(conf.getTimeoutExceptionThreshold());