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

com.sailthru.client.DefaultSailthruHttpClientConfiguration Maven / Gradle / Ivy

There is a newer version: 2.4.1
Show newest version
package com.sailthru.client;

/**
 * Using this class will set connection and socket timeout to infinite timeout, which is certainly not recommended.
 * Default timeouts will be set as positive non-zero values (both for connection and socket) in next major relase only,
 * for maintaining compatibility with current minor release.
 * So, it's recommended to implement {@link SailthruHttpClientConfiguration} based on client requirements for now.
 */
public class DefaultSailthruHttpClientConfiguration implements SailthruHttpClientConfiguration {

    private static final int DEFAULT_CONN_TIMEOUT = 0;
    private static final int DEFAULT_SO_CONN_TIMEOUT = 0;

    public int getConnectionTimeout() {
        return DEFAULT_CONN_TIMEOUT;
    }

    public int getSoTimeout() {
        return DEFAULT_SO_CONN_TIMEOUT;
    }

    public boolean getSoReuseaddr() {
        return false;
    }

    public boolean getTcpNoDelay() {
        return true;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy