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 CertificateProviderprivate final CertificateProviderStore.CertProviderKeyprivate final CertificateProvider.Watcher -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateHandle(CertificateProviderStore.CertProviderKey key, CertificateProvider.Watcher watcher, CertificateProvider certProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Removes the associatedCertificateProvider.Watcherfor theCertificateProviderand 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.Watcherfor theCertificateProviderand decrements the ref-count. Releases theCertificateProviderif the ref-count has reached 0.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-