private class QuotaCache.QuotaRefresherChore extends ScheduledChore
Modifier and Type | Field and Description |
---|---|
private long |
lastUpdate |
Constructor and Description |
---|
QuotaRefresherChore(int period,
Stoppable stoppable) |
Modifier and Type | Method and Description |
---|---|
protected void |
chore()
The task to execute on each scheduled execution of the Chore
|
private <K,V extends QuotaState> |
fetch(String type,
ConcurrentHashMap<K,V> quotasMap,
QuotaCache.Fetcher<K,V> fetcher) |
private void |
fetchNamespaceQuotaState() |
private void |
fetchTableQuotaState() |
private void |
fetchUserQuotaState() |
cancel, cancel, choreForTesting, cleanup, getInitialDelay, getName, getPeriod, getStopper, getTimeUnit, initialChore, isInitialChoreComplete, isScheduled, run, toString, triggerNow
private long lastUpdate
public QuotaRefresherChore(int period, Stoppable stoppable)
protected void chore()
ScheduledChore
chore
in class ScheduledChore
private void fetchNamespaceQuotaState()
private void fetchTableQuotaState()
private void fetchUserQuotaState()
private <K,V extends QuotaState> void fetch(String type, ConcurrentHashMap<K,V> quotasMap, QuotaCache.Fetcher<K,V> fetcher)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.