File tree 1 file changed +5
-0
lines changed
gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,8 @@ Channel getChannel(int affinity) {
152
152
/** {@inheritDoc} */
153
153
@ Override
154
154
public ManagedChannel shutdown () {
155
+ LOG .fine ("Initiating graceful shutdown due to explicit request" );
156
+
155
157
List <Entry > localEntries = entries .get ();
156
158
for (Entry entry : localEntries ) {
157
159
entry .channel .shutdown ();
@@ -191,6 +193,8 @@ public boolean isTerminated() {
191
193
/** {@inheritDoc} */
192
194
@ Override
193
195
public ManagedChannel shutdownNow () {
196
+ LOG .fine ("Initiating immediate shutdown due to explicit request" );
197
+
194
198
List <Entry > localEntries = entries .get ();
195
199
for (Entry entry : localEntries ) {
196
200
entry .channel .shutdownNow ();
@@ -356,6 +360,7 @@ void refresh() {
356
360
// - then thread2 will shut down channel that thread1 will put back into circulation (after it
357
361
// replaces the list)
358
362
synchronized (entryWriteLock ) {
363
+ LOG .fine ("Refreshing all channels" );
359
364
ArrayList <Entry > newEntries = new ArrayList <>(entries .get ());
360
365
361
366
for (int i = 0 ; i < newEntries .size (); i ++) {
You can’t perform that action at this time.
0 commit comments