Package org.apache.iceberg.rest.auth
Class RefreshingAuthManager
java.lang.Object
org.apache.iceberg.rest.auth.RefreshingAuthManager
- All Implemented Interfaces:
AutoCloseable,AuthManager
- Direct Known Subclasses:
OAuth2Manager
An
AuthManager that provides machinery for refreshing authentication data asynchronously,
using a background thread pool.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the manager and releases any resources.voidkeepRefreshed(boolean keep) protected ScheduledExecutorServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.iceberg.rest.auth.AuthManager
catalogSession, contextualSession, initSession, tableSession
-
Constructor Details
-
RefreshingAuthManager
-
-
Method Details
-
keepRefreshed
public void keepRefreshed(boolean keep) -
close
public void close()Description copied from interface:AuthManagerCloses the manager and releases any resources.This method is called when the owning catalog is closed.
- Specified by:
closein interfaceAuthManager- Specified by:
closein interfaceAutoCloseable
-
refreshExecutor
-