We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 36924c1 + ac9f305 commit 9445af9Copy full SHA for 9445af9
examples/src/main/java/io/kubernetes/client/examples/WatchExample.java
@@ -22,13 +22,15 @@
22
import io.kubernetes.client.util.Watch;
23
24
import java.io.IOException;
25
+import java.util.concurrent.TimeUnit;
26
27
/**
28
* A simple example of how to use Watch API to watch changes in Namespace list.
29
*/
30
public class WatchExample {
31
public static void main(String[] args) throws IOException, ApiException{
32
ApiClient client = Config.defaultClient();
33
+ client.getHttpClient().setReadTimeout(60, TimeUnit.SECONDS);
34
Configuration.setDefaultApiClient(client);
35
36
CoreV1Api api = new CoreV1Api();
0 commit comments