Package io.trino.plugin.session.db
Class RefreshingDbSpecsProvider
java.lang.Object
io.trino.plugin.session.db.RefreshingDbSpecsProvider
- All Implemented Interfaces:
DbSpecsProvider,Supplier<List<SessionMatchSpec>>
Periodically schedules the loading of specs from the database during initialization. Returns the most recent successfully
loaded specs on every get() invocation.
-
Constructor Details
-
RefreshingDbSpecsProvider
@Inject public RefreshingDbSpecsProvider(DbSessionPropertyManagerConfig config, SessionPropertiesDao dao)
-
-
Method Details
-
initialize
@PostConstruct public void initialize() -
destroy
@PreDestroy public void destroy() -
get
- Specified by:
getin interfaceSupplier<List<SessionMatchSpec>>
-
getDbLoadFailures
public io.airlift.stats.CounterStat getDbLoadFailures()
-