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

com.yahoo.vespa.jaxrs.client.JaxRsTimeouts Maven / Gradle / Ivy

There is a newer version: 7.579.27
Show newest version
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.jaxrs.client;

import java.time.Duration;

/**
 * @author hakonhall
 */
public interface JaxRsTimeouts {
    /**
     * The connect timeout, which must be at least 1ms. Called once per real REST call.
     *
     * @throws com.yahoo.concurrent.UncheckedTimeoutException on timeout.
     */
    Duration getConnectTimeoutOrThrow();

    /**
     * The read timeout, which must be at least 1ms. Called once per real REST call.
     *
     * @throws com.yahoo.concurrent.UncheckedTimeoutException on timeout.
     */
    Duration getReadTimeoutOrThrow();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy