Class ThreadedAccumulator<T,A,R>

java.lang.Object
com.linkedin.alpini.base.concurrency.ThreadedAccumulator<T,A,R>
All Implemented Interfaces:
Consumer<T>, Supplier<R>

public class ThreadedAccumulator<T,A,R> extends Object implements Consumer<T>, Supplier<R>
  • Method Details

    • getThenReset

      public R getThenReset()
    • get

      public R get()
      Specified by:
      get in interface Supplier<T>
    • reset

      public void reset()
    • accept

      public void accept(T t)
      Specified by:
      accept in interface Consumer<T>
    • pack

      public void pack()