Package io.grpc.xds
Class FilterChainSelectorManager
java.lang.Object
io.grpc.xds.FilterChainSelectorManager
Maintains the current xDS selector and any resources using that selector. When the selector
changes, old resources are closed to avoid old config usages.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final AtomicLong
private TreeSet
<FilterChainSelectorManager.Closer> private final Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
(package private) int
Only safe to be called by code that is responsible for updating the selector.void
updateSelector
(FilterChainMatchingProtocolNegotiators.FilterChainMatchingHandler.FilterChainSelector newSelector)
-
Field Details
-
closerId
-
lock
-
selector
-
closers
-
-
Constructor Details
-
FilterChainSelectorManager
FilterChainSelectorManager()
-
-
Method Details
-
register
-
deregister
-
getSelectorToUpdateSelector
public FilterChainMatchingProtocolNegotiators.FilterChainMatchingHandler.FilterChainSelector getSelectorToUpdateSelector()Only safe to be called by code that is responsible for updating the selector. -
updateSelector
public void updateSelector(FilterChainMatchingProtocolNegotiators.FilterChainMatchingHandler.FilterChainSelector newSelector) -
getRegisterCount
int getRegisterCount()
-