Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
add comment on synchronization
  • Loading branch information
tonytanger committed Nov 19, 2019
commit 5a3d4bde5722018e2619b55f60825673a442cdf2
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
* channel with a new one periodically
*
* <p>Package-private for internal use.
Comment thread
igorbernstein2 marked this conversation as resolved.
*
* <p>A note on the synchronization logic. refreshChannel is called periodically which updates
* delegate and nextScheduledRefresh. lock is needed to provide atomic access and update of delegate
* and nextScheduledRefresh. One example is newCall needs to be atomic to avoid context switching to
* refreshChannel that shuts down delegate before newCall is completed.
*/
class RefreshingManagedChannel extends ManagedChannel {
Comment thread
igorbernstein2 marked this conversation as resolved.
private static final Logger LOG = Logger.getLogger(RefreshingManagedChannel.class.getName());
Expand Down