All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.scassandra.http.client.ClosedConnectionConfig Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
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