public class ThreadLocalProgressCounter extends ThreadLocal<ProgressCounter>
ProgressCounter accessible through
a ThreadLocal.| Constructor and Description |
|---|
ThreadLocalProgressCounter() |
| Modifier and Type | Method and Description |
|---|---|
long |
getProgress()
Sums the progress of all counters.
|
protected ProgressCounter |
initialValue()
Initializes a new counter, adds it to the list of counters
and returns it.
|
void |
reset()
Removes all counters.
|
get, remove, set, withInitialprotected ProgressCounter initialValue()
initialValue in class ThreadLocal<ProgressCounter>public long getProgress()
public void reset()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.