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 TypeMethodDescriptionclear()Removes all the previously stored items.write(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 future with
WriteResult.
-
clear
CompletableFuture<WriteResult> clear()Removes all the previously stored items.- Returns:
- A future with
WriteResult.
-