- init
Initializes the context.
- close
Stops monitoring and frees buffered data, returning this object to its initial
state.
- emitRecord
Sends a record to the metrics system.
- emitRecords
Emits the records.
- flush
Called each period after all records have been emitted, this method does
nothing. Subclasses may ove
- getContextName
Returns the context name.
- getRecordMap
- newRecord
Subclasses should override this if they subclass MetricsRecordImpl.
- startTimer
Starts timer if it is not already started
- stopMonitoring
Stops monitoring. This does not free buffered data.
- stopTimer
Stops timer if it is running
- sum
Adds two numbers, coercing the second to the type of the first.