Package 

Interface Writer

  • All Implemented Interfaces:
    java.io.Closeable , java.lang.AutoCloseable

    
    public interface Writer
     implements Closeable
                        

    A writer is responsible to send collected spans to some place

    • Method Summary

      Modifier and Type Method Description
      abstract void write(List<DDSpan> trace) Write a trace represented by the entire list of all the finished spans
      abstract void start() Start the writer
      abstract void close() Indicates to the writer that no future writing will come and it should terminates allconnections and tasks
      abstract void incrementTraceCount() Count that a trace was captured for stats, but without reporting it.
      • Methods inherited from class java.io.Closeable

        close
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • write

         abstract void write(List<DDSpan> trace)

        Write a trace represented by the entire list of all the finished spans

        Parameters:
        trace - the list of spans to write
      • start

         abstract void start()

        Start the writer

      • close

         abstract void close()

        Indicates to the writer that no future writing will come and it should terminates allconnections and tasks

      • incrementTraceCount

         abstract void incrementTraceCount()

        Count that a trace was captured for stats, but without reporting it.