Skip to content

Commit be00ce1

Browse files
feat: add isShutdown in HttpTransport (#1901)
* feat: add isShutdown in HttpTransport * fix lint * add comment * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * refactor according to code review * restore comment changes * change year * change default implementation --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 1acedf7 commit be00ce1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

google-http-client/src/main/java/com/google/api/client/http/HttpTransport.java

+11-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/**
2222
* Thread-safe abstract HTTP transport.
2323
*
24-
* <p>Implementation is thread-safe, and sub-classes must be thread-safe. For maximum efficiency,
24+
* <p>Implementation is thread-safe, and subclasses must be thread-safe. For maximum efficiency,
2525
* applications should use a single globally-shared instance of the HTTP transport.
2626
*
2727
* <p>The recommended concrete implementation HTTP transport library to use depends on what
@@ -158,4 +158,14 @@ public boolean isMtls() {
158158
* @since 1.4
159159
*/
160160
public void shutdown() throws IOException {}
161+
162+
/**
163+
* Returns whether the transport is shutdown or not.
164+
*
165+
* @return true if the transport is shutdown.
166+
* @since 1.44.0
167+
*/
168+
public boolean isShutdown() {
169+
return true;
170+
}
161171
}

0 commit comments

Comments
 (0)