public class SchedulerConfigCache<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SchedulerConfigCache.Reloadable<T> |
| Constructor and Description |
|---|
SchedulerConfigCache(Map<String,Object> conf,
SchedulerConfigCache.Reloadable<T> reloader) |
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Get the scheduler config from cache.
|
void |
prepare() |
void |
refresh()
Refresh the config only after the cache expires.
|
public SchedulerConfigCache(Map<String,Object> conf, SchedulerConfigCache.Reloadable<T> reloader)
public void prepare()
public void refresh()
public T get()
Copyright © 2023 The Apache Software Foundation. All rights reserved.