Class DittoTransaction.Result.Rollback<T>

java.lang.Object
com.ditto.java.DittoTransaction.Result<T>
com.ditto.java.DittoTransaction.Result.Rollback<T>
Type Parameters:
T - the type parameter (unused for rollback).
Enclosing class:
DittoTransaction.Result<T>

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

Represents a transaction that should be rolled back.

When returned from a transaction callback, this signals that all changes should be discarded and the database should remain unchanged.

  • Constructor Details

    • Rollback

      public Rollback()
      Creates a rollback result.