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 classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final AtomicLongprivate TreeSet<FilterChainSelectorManager.Closer> private final Object -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid(package private) intOnly safe to be called by code that is responsible for updating the selector.voidupdateSelector(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()
-