Interface TransactionStateOperations<T,​S extends TransactionState>

    • Method Detail

      • execute

        <R> R execute​(@NonNull
                      S state,
                      @NonNull
                      TransactionDefinition definition,
                      @NonNull
                      TransactionCallback<T,​R> callback)
        Execute a read-only transaction within the context of the function.
        Type Parameters:
        R - The result
        Parameters:
        state - The transaction state
        definition - The transaction definition
        callback - The call back
        Returns:
        The result
      • executeRead

        <R> R executeRead​(@NonNull
                          S state,
                          @NonNull
                          TransactionCallback<T,​R> callback)
        Execute a read-only transaction within the context of the function.
        Type Parameters:
        R - The result
        Parameters:
        state - The transaction state
        callback - The call back
        Returns:
        The result
      • executeWrite

        <R> R executeWrite​(@NonNull
                           S state,
                           @NonNull
                           TransactionCallback<T,​R> callback)
        Execute a default transaction within the context of the function.
        Type Parameters:
        R - The result
        Parameters:
        state - The transaction state
        callback - The call back
        Returns:
        The result