Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add isShutdown in HttpTransport #1901

Merged
merged 8 commits into from
Nov 27, 2023
Merged
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010 Google Inc.
* Copyright (c) 2023 Google Inc.
blakeli0 marked this conversation as resolved.
Show resolved Hide resolved
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
Expand All @@ -21,7 +21,7 @@
/**
* Thread-safe abstract HTTP transport.
*
* <p>Implementation is thread-safe, and sub-classes must be thread-safe. For maximum efficiency,
* <p>Implementation is thread-safe, and subclasses must be thread-safe. For maximum efficiency,
* applications should use a single globally-shared instance of the HTTP transport.
*
* <p>The recommended concrete implementation HTTP transport library to use depends on what
Expand Down Expand Up @@ -158,4 +158,14 @@ public boolean isMtls() {
* @since 1.4
*/
public void shutdown() throws IOException {}

/**
* Returns whether the transport is shutdown or not.
*
* @return true if the transport is shutdown.
* @since 1.44.0
*/
public boolean isShutdown() {
blakeli0 marked this conversation as resolved.
Show resolved Hide resolved
return false;
}
}
Loading