Interface Batch

All Superinterfaces:
AutoCloseable

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

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    The possible states of a batch.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    Discards this batch.
    Returns the state of this batch.
  • Method Details

    • 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.
    • close

      void close()
      Specified by:
      close in interface AutoCloseable