setTimeout(timeout);
return this;
}
public SmartClientConfig toSmartClientConfig() {
SmartClientConfig smartConfig = new SmartClientConfig().withInitialNodes(toServers(s3Endpoints)).withVipAddresses(vipHost)
.withPollProtocol(protocol.toString())
.withUsername(credentialsProvider.getCredentials().getAWSAccessKeyId())
.withSecret(credentialsProvider.getCredentials().getAWSSecretKey());
if (pollInterval > 0) smartConfig.setPollInterval(pollInterval);
if (timeout > 0) smartConfig.setTimeout(timeout);
return smartConfig;
}