Class CredentialsProvider

    • Constructor Detail

      • CredentialsProvider

        protected CredentialsProvider()
        Default constructor
    • Method Detail

      • getCredentials

        public CompletableFuture<Credentials> getCredentials()
        Request credentials from the provider
        Returns:
        A Future for Credentials that will be completed when they are acquired.
      • releaseNativeHandle

        protected void releaseNativeHandle()
        Begins the release process of the provider's native handle
        Specified by:
        releaseNativeHandle in class CrtResource
      • canReleaseReferencesImmediately

        protected boolean canReleaseReferencesImmediately()
        Determines whether a resource releases its dependencies at the same time the native handle is released or if it waits. Resources that wait are responsible for calling releaseReferences() manually.
        Specified by:
        canReleaseReferencesImmediately in class CrtResource
        Returns:
        true if this resource releases synchronously, false if this resource performs async shutdown
      • getShutdownCompleteFuture

        public CompletableFuture<Void> getShutdownCompleteFuture()
        Learn when this object has finished shutting down.
        Returns:
        future that completes when all of this object's native resources have shut down or released properly.