Class DittoTransaction.Result.Commit<T>

java.lang.Object
com.ditto.java.DittoTransaction.Result<T>
com.ditto.java.DittoTransaction.Result.Commit<T>
Type Parameters:
T - the type of value being returned.
Enclosing class:
DittoTransaction.Result<T>

public static final class DittoTransaction.Result.Commit<T> extends DittoTransaction.Result<T>

Represents a successful transaction that should be committed.

When returned from a transaction callback, this signals that all changes should be persisted to the database. The commit can optionally carry a return value.

  • Constructor Details

    • Commit

      public Commit(T value)
      Creates a commit result with the specified value.
      Parameters:
      value - the value to return from the transaction.
  • Method Details

    • getValue

      public T getValue()
      Returns the value associated with this commit.
      Returns:
      the commit value.