Package fr.gouv.vitam.common.utils

# Class BufferedConsumer<T>

java.lang.Object
fr.gouv.vitam.common.utils.BufferedConsumer<T>

All Implemented Interfaces:
  `AutoCloseable`, `Consumer<T>`

public class BufferedConsumer<T> extends Object implements Consumer<T>, AutoCloseable

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BufferedConsumer(int bufferSize, Consumer<List<T>> bufferConsumer)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `accept(T entry)`
  `void`
  `close()`
  `void`
  `flush()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface java.util.function.Consumer

  `andThen`

- ## Constructor Details

  - ### BufferedConsumer

    public BufferedConsumer(int bufferSize, Consumer<List<T>> bufferConsumer)

- ## Method Details

  - ### accept

    public void accept(T entry)
    Specified by:
      `accept` in interface `Consumer<T>`

  - ### flush

    public void flush()

  - ### close

    public void close()
    Specified by:
      `close` in interface `AutoCloseable`