Interface Batch

  • All Superinterfaces:
    AutoCloseable

    public interface Batch
    extends AutoCloseable
    Exposes a mechanism to close a batch, and potentially discard it.
    Author:
    Paul Ferraro
    • Method Detail

      • close

        void close()
        Closes this batch. Batch may or may not have been discarded.
        Specified by:
        close in interface AutoCloseable
      • discard

        void discard()
        Discards this batch. A discarded batch must still be closed.
      • getState

        Batch.State getState()
        Returns the state of this batch.
        Returns:
        the state of this batch.