|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IInstrument<T>
Interface used to construct a counter that reports on an instrumented value.
| Method Summary | |
|---|---|
T |
getValue()
Obtain a sample. |
long |
lastModified()
Obtain the timestamp for the last collected sample. |
void |
setValue(T value,
long timestamp)
Set the current value. |
| Method Detail |
|---|
T getValue()
long lastModified()
void setValue(T value,
long timestamp)
value - The sampled value.timestamp - The timestamp for that sample.
UnsupportedOperationException - if this operation is not allowed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||