Class DittoTransaction.Result<T>
java.lang.Object
com.ditto.java.DittoTransaction.Result<T>
- Type Parameters:
T- the type of value returned upon successful commit.
- Direct Known Subclasses:
DittoTransaction.Result.Commit,DittoTransaction.Result.Rollback
- Enclosing class:
DittoTransaction
public abstract static sealed class DittoTransaction.Result<T>
extends Object
permits DittoTransaction.Result.Commit<T>, DittoTransaction.Result.Rollback<T>
Represents the result of a transaction, indicating whether to commit or rollback.
This is a sealed type with two possible outcomes:
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a successful transaction that should be committed.static final classRepresents a transaction that should be rolled back. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final com.ditto.internal.InternalDittoTransaction.Result<T>
-
Constructor Details
-
Result
-
-
Method Details
-
getImplementation
-