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

public interface SignalStorage<T> extends Iterable<Collection<T>>, Closeable
Allows writing and iterating over written signal items.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Abstraction for Logs.
    static interface 
    Abstraction for Metrics.
    static interface 
    Abstraction for Spans.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.opentelemetry.sdk.common.CompletableResultCode
    Removes all the previously stored items.
    io.opentelemetry.sdk.common.CompletableResultCode
    write(Collection<T> items)
    Stores signal items.

    Methods inherited from interface java.io.Closeable

    close

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator
  • Method Details

    • write

      io.opentelemetry.sdk.common.CompletableResultCode write(Collection<T> items)
      Stores signal items.
      Parameters:
      items - The items to be stored.
      Returns:
      A CompletableResultCode representing the outcome of the write operation.
    • clear

      io.opentelemetry.sdk.common.CompletableResultCode clear()
      Removes all the previously stored items.
      Returns:
      A CompletableResultCode representing the outcome of the clear operation.