public class StandardCounter extends Object implements Counter
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
StandardCounter.UnmodifiableCounter |
| Modifier and Type | Field and Description |
|---|---|
private String |
context |
private String |
identifier |
private String |
name |
private AtomicLong |
value |
| Constructor and Description |
|---|
StandardCounter(String identifier,
String context,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
adjust(long delta) |
String |
getContext() |
String |
getIdentifier() |
String |
getName() |
long |
getValue() |
void |
reset() |
String |
toString() |
static StandardCounter.UnmodifiableCounter |
unmodifiableCounter(Counter counter) |
private final String identifier
private final String context
private final String name
private final AtomicLong value
public String getContext()
getContext in interface Counterpublic String getIdentifier()
getIdentifier in interface Counterpublic static StandardCounter.UnmodifiableCounter unmodifiableCounter(Counter counter)
Copyright © 2021 Apache NiFi Project. All rights reserved.