blob: 9d843af7fb58d51b918cab61f830a262f3d418cc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright 2020 Oath Inc. 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.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();
}
|