Class CertificateProviderStore.Handle
java.lang.Object
io.grpc.xds.internal.security.certprovider.CertificateProviderStore.Handle
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
CertificateProviderStore
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final CertificateProvider
private final CertificateProviderStore.CertProviderKey
private final CertificateProvider.Watcher
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Handle
(CertificateProviderStore.CertProviderKey key, CertificateProvider.Watcher watcher, CertificateProvider certProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Removes the associatedCertificateProvider.Watcher
for theCertificateProvider
and decrements the ref-count.
-
Field Details
-
key
-
watcher
-
certProvider
-
-
Constructor Details
-
Handle
private Handle(CertificateProviderStore.CertProviderKey key, CertificateProvider.Watcher watcher, CertificateProvider certProvider)
-
-
Method Details
-
close
public void close()Removes the associatedCertificateProvider.Watcher
for theCertificateProvider
and decrements the ref-count. Releases theCertificateProvider
if the ref-count has reached 0.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-