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 TypeMethodDescriptionvoid
close()
Closes the manager and releases any resources.void
keepRefreshed
(boolean keep) protected ScheduledExecutorService
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:AuthManager
Closes the manager and releases any resources.This method is called when the owning catalog is closed.
- Specified by:
close
in interfaceAuthManager
- Specified by:
close
in interfaceAutoCloseable
-
refreshExecutor
-