Skip to content

Commit 32284a2

Browse files
committed
add close to watch
1 parent aa052cc commit 32284a2

File tree

1 file changed

+4
-0
lines changed
  • util/src/main/java/io/kubernetes/client/util

1 file changed

+4
-0
lines changed

util/src/main/java/io/kubernetes/client/util/Watch.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,8 @@ public Iterator<Response<T>> iterator() {
120120
public void remove() {
121121
throw new UnsupportedOperationException("remove");
122122
}
123+
124+
public void close() throws IOException {
125+
this.response.close();
126+
}
123127
}

0 commit comments

Comments
 (0)