@InterfaceAudience.Public @InterfaceStability.Evolving public class Counter extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
Counter.Cell |
private static class |
Counter.Container |
private static class |
Counter.IndexHolder |
Modifier and Type | Field and Description |
---|---|
private AtomicReference<Counter.Container> |
containerRef |
private ThreadLocal<Counter.IndexHolder> |
indexHolderThreadLocal |
private static int |
MAX_CELLS_LENGTH |
Modifier | Constructor and Description |
---|---|
|
Counter() |
private |
Counter(Counter.Cell initCell) |
|
Counter(long initValue) |
private static final int MAX_CELLS_LENGTH
private final AtomicReference<Counter.Container> containerRef
private final ThreadLocal<Counter.IndexHolder> indexHolderThreadLocal
public Counter()
public Counter(long initValue)
private Counter(Counter.Cell initCell)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.