public abstract class CountingCache extends Object
Constructor and Description |
---|
CountingCache() |
Modifier and Type | Method and Description |
---|---|
protected long |
getCount(Integer taskId)
Get number of flushes for worker with desired task id
|
protected void |
incrementCounter(Integer taskId)
Increase count of flushes for worker with desired task id.
|
void |
reset()
Reset the counts
|
protected void incrementCounter(Integer taskId)
taskId
- Task id of workerprotected long getCount(Integer taskId)
taskId
- Task id of workerpublic void reset()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.