Class RefreshingAuthManager

java.lang.Object
org.apache.iceberg.rest.auth.RefreshingAuthManager
All Implemented Interfaces:
AutoCloseable, AuthManager
Direct Known Subclasses:
OAuth2Manager

public abstract class RefreshingAuthManager extends Object implements AuthManager
An AuthManager that provides machinery for refreshing authentication data asynchronously, using a background thread pool.
  • Constructor Details

    • RefreshingAuthManager

      protected RefreshingAuthManager(String executorNamePrefix)
  • Method Details

    • keepRefreshed

      public void keepRefreshed(boolean keep)
    • close

      public void close()
      Description copied from interface: AuthManager
      Closes the manager and releases any resources.

      This method is called when the owning catalog is closed.

      Specified by:
      close in interface AuthManager
      Specified by:
      close in interface AutoCloseable
    • refreshExecutor

      @Nullable protected ScheduledExecutorService refreshExecutor()