Class MultiSink

java.lang.Object
com.arpnetworking.tsdcore.sinks.BaseSink
com.arpnetworking.tsdcore.sinks.MultiSink
All Implemented Interfaces:
Sink

public final class MultiSink extends BaseSink
A publisher that wraps multiple others and publishes to all of them. This class is thread safe. TODO(vkoskela): Support concurrent execution [MAI-98]
Author:
Brandon Arp (brandon dot arp at inscopemetrics dot io)
  • Method Details

    • recordAggregateData

      public void recordAggregateData(PeriodicData periodicData)
      Description copied from interface: Sink
      Called when an additional PeriodicData instance is available for publication.
      Parameters:
      periodicData - The PeriodicData to be published.
    • close

      public void close()
      Description copied from interface: Sink
      Called to allow the publisher to clean-up. No further calls to recordAggregation will be made after a call to close.
    • toLogValue

      public Object toLogValue()
      Description copied from class: BaseSink
      Generate a Steno log compatible representation.
      Overrides:
      toLogValue in class BaseSink
      Returns:
      Steno log compatible representation.