Package io.deephaven.extensions.barrage
Interface BarrageTableLoggers.Factory
- All Known Implementing Classes:
BarrageTableLoggers.Factory.Noop
- Enclosing class:
BarrageTableLoggers
public static interface BarrageTableLoggers.Factory
Supplies the sinks that
BarragePerformanceLog forwards its entries to. Each method is called exactly
once, when that singleton is constructed, on whichever thread first uses barrage.
Implementations must not throw and must not return null; either fails the construction of
BarragePerformanceLog, and hence the barrage activity that first needed it. An implementation that
expects a sink to be unavailable is responsible for that decision itself: catch the failure, log the cause, and
return the corresponding Noop so that barrage performance is recorded to the in-memory tables only.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription
-
Method Details
-
subscriptionPerformanceSink
BarrageSubscriptionPerformanceSink subscriptionPerformanceSink()- Returns:
- the sink to forward subscription performance entries to; never null
-
snapshotPerformanceSink
BarrageSnapshotPerformanceSink snapshotPerformanceSink()- Returns:
- the sink to forward snapshot performance entries to; never null
-