public interface InstrumentProxy
| Modifier and Type | Method and Description |
|---|---|
void |
increment(int count)
Increments the Instrument by a specified count.
|
boolean |
isActive()
Used by classes being profiles so that they can avoid unnecessary
code when the data from a Instrument is not being used.
|
void |
setValue(int value)
Sets the current value of the Instrument.
|
boolean isActive()
void increment(int count)
This method may throw an IllegalStateException if the proxy is not meant to handle calls to increment.
count - A positive integer to increment the counter by.void setValue(int value)
This method may throw an IllegalStateException if the proxy is not meant to handle calls to setValue.
value - The new value for the Instrument.