T - public class OneShotInstrument<T> extends Object implements IInstrument<T>
Instrument that records a single value at the moment that it
 is constructed and always reports the same value and lastModified time.| Constructor and Description | 
|---|
| OneShotInstrument(T value) | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
public OneShotInstrument(T value)
public T getValue()
IInstrumentgetValue in interface IInstrument<T>public long lastModified()
IInstrumentlastModified in interface IInstrument<T>public void setValue(T value, long timestamp)
IInstrumentsetValue in interface IInstrument<T>value - The sampled value.timestamp - The timestamp for that sample.UnsupportedOperationException - alwaysCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.