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 Detail

      • 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