Interface TransactionJournal.MutableEntry

All Superinterfaces:
AutoCloseable
Enclosing interface:
TransactionJournal

public static interface TransactionJournal.MutableEntry extends AutoCloseable
Represents a mutable journal entry. This allows for writes to
  • Method Details

    • getTransactionId

      String getTransactionId()
      Gets the unique ID of the transaction.
      Returns:
      the transaction ID
    • commit

      void commit()
      Commits the pending changes to the TransactionJournal. Once this is done the next subsequent operation must be to close the TransactionJournal.MutableEntry as it will accept no further mutations. If left uncommitted at close time, the changes to the journal will roll back and result in an error in the logs.
    • rollback

      void rollback()
      Rolls back the pending changes to the TransactionJournal. Once this is done the next subsequent operation must be to close the TransactionJournal.MutableEntry as it will accept no further mutations.
    • applyChangeToResourceReversePaths

      void applyChangeToResourceReversePaths(Path path)
      Logs the supplied Path as having been flushed.
      Parameters:
      path -
    • applyChangeToResourceReversePaths

      void applyChangeToResourceReversePaths(ResourceId resourceId)
      Logs the supplied ResourceId as having been flushed.
      Parameters:
      resourceId -
    • applyChangeToResourceContents

      void applyChangeToResourceContents(ResourceId resourceId)
      Logs the supplied ResourceId as its contents having been flushed.
      Parameters:
      resourceId -
    • applyChangeToTasks

      void applyChangeToTasks(ResourceId resourceId)
      Applies the changes to the tasks for the supplied ResourceId.
      Parameters:
      resourceId -
    • close

      void close()
      Closes this entry. Releasing any resources to the underlying TransactionJournal. Once this is called, all other methods must throw an instance of IllegalStateException and commit no changes to the underlying TransactionJournal.
      Specified by:
      close in interface AutoCloseable