Interface WriteOperation

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface WriteOperation
Function performing a write operation.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Executes a write operation.
  • Method Details

    • run

      void run(WriteableTransaction txn) throws Exception
      Executes a write operation. Implementation must be idempotent since operation might be retried (for example in case of optimistic locking failure).
      Parameters:
      txn - the write transaction where to execute the write operation
      Throws:
      Exception - if a problem occurs with the underlying storage engine