Modifier and Type | Class and Description |
---|---|
static class |
Counter.CounterConfig
The possible trigger configuration values.
|
Modifier and Type | Method and Description |
---|---|
Counter.CounterConfig |
getConfig()
Request configuration of the counter.
|
java.lang.String |
getName()
Returns name of the component.
|
boolean |
isEnabled()
Get current counter state.
|
long |
read()
Read current counter value.
|
void |
reset()
Reset counter to 0.
|
void |
setConfig(Counter.CounterConfig counterConfig)
Define behavior of the counter.
|
void |
setEnabled(boolean enable)
Enable or disable counter.
|
java.lang.String |
toString() |
public void reset() throws java.io.IOException
java.io.IOException
public void setEnabled(boolean enable) throws java.io.IOException
enable
- State to set.java.io.IOException
public boolean isEnabled() throws java.io.IOException
java.io.IOException
public void setConfig(Counter.CounterConfig counterConfig) throws java.io.IOException
counterConfig
- Use one of the values from Counter::CounterConfig.java.io.IOException
public Counter.CounterConfig getConfig() throws java.io.IOException
java.io.IOException
public long read() throws java.io.IOException
java.io.IOException
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object