aboutsummaryrefslogtreecommitdiffstats
path: root/jaxrs_client_utils/src/main/java/com/yahoo/vespa/jaxrs/client/JaxRsTimeouts.java
blob: 914a9d7b42cded67d7979d57b48a137faa739024 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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.google.common.util.concurrent.UncheckedTimeoutException on timeout.
     */
    Duration getConnectTimeoutOrThrow();

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