Interface SignalStorage<T>
- Type Parameters:
T- The type of signal data supported.
- All Superinterfaces:
AutoCloseable,Closeable,Iterable<Collection<T>>
- All Known Subinterfaces:
SignalStorage.LogRecord,SignalStorage.Metric,SignalStorage.Span
- All Known Implementing Classes:
FileLogRecordStorage,FileMetricStorage,FileSpanStorage
Allows writing and iterating over written signal items.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAbstraction for Logs.static interfaceAbstraction for Metrics.static interfaceAbstraction for Spans. -
Method Summary
Modifier and TypeMethodDescriptionio.opentelemetry.sdk.common.CompletableResultCodeclear()Removes all the previously stored items.io.opentelemetry.sdk.common.CompletableResultCodewrite(Collection<T> items) Stores signal items.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
write
Stores signal items.- Parameters:
items- The items to be stored.- Returns:
- A
CompletableResultCoderepresenting the outcome of the write operation.
-
clear
io.opentelemetry.sdk.common.CompletableResultCode clear()Removes all the previously stored items.- Returns:
- A
CompletableResultCoderepresenting the outcome of the clear operation.
-