org.scassandra.http.client.ClosedConnectionConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Allows Java applications to use Scassandra
package org.scassandra.http.client;
import java.util.Map;
import com.google.common.collect.ImmutableMap;
import org.scassandra.server.priming.ErrorConstants;
public class ClosedConnectionConfig extends Config {
public enum CloseType {
CLOSE,
RESET,
HALFCLOSE;
}
private final CloseType closeType;
public ClosedConnectionConfig(CloseType closeType) {
this.closeType = closeType;
}
@Override
Map getProperties() {
return ImmutableMap.of(
ErrorConstants.CloseType(), String.valueOf(closeType.toString().toLowerCase())
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy