Class RuntimeMetricsDiagnosticEventPersister
java.lang.Object
io.higson.runtime.diagnostic.persister.RuntimeMetricsDiagnosticEventPersister
- All Implemented Interfaces:
DiagnosticEventPersister<DiagnosticRuntimeMetric>
public class RuntimeMetricsDiagnosticEventPersister
extends Object
implements DiagnosticEventPersister<DiagnosticRuntimeMetric>
DiagnosticEventPersister handling DiagnosticEventCode.RUNTIME_METRICS events.
Persists them via DiagnosticRuntimeMetricDao.saveBatch(List).-
Field Summary
Fields inherited from interface io.higson.runtime.diagnostic.persister.DiagnosticEventPersister
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondataType()The payload class this persister handles.voidsaveBatch(List<DiagnosticRuntimeMetric> items) Batch-insert the type-safe payloads into the underlying store.The event code this persister handles.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.higson.runtime.diagnostic.persister.DiagnosticEventPersister
persist
-
Constructor Details
-
RuntimeMetricsDiagnosticEventPersister
-
-
Method Details
-
supportedCode
Description copied from interface:DiagnosticEventPersisterThe event code this persister handles.- Specified by:
supportedCodein interfaceDiagnosticEventPersister<DiagnosticRuntimeMetric>
-
dataType
Description copied from interface:DiagnosticEventPersisterThe payload class this persister handles. Used by the defaultDiagnosticEventPersister.persist(List)to filter the incoming batch.- Specified by:
dataTypein interfaceDiagnosticEventPersister<DiagnosticRuntimeMetric>
-
saveBatch
Description copied from interface:DiagnosticEventPersisterBatch-insert the type-safe payloads into the underlying store.- Specified by:
saveBatchin interfaceDiagnosticEventPersister<DiagnosticRuntimeMetric>- Parameters:
items- items to persist; nevernullor empty
-