Interface TFuture<V>


public interface TFuture<V>
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Waits if necessary for the transaction to be committed, and then retrieves its result.
    boolean
    Returns true if the transaction associated to this future is committed.
    boolean
    Returns true if the transaction associated to this future was rolled back.
  • Method Details

    • isRollback

      boolean isRollback()
      Returns true if the transaction associated to this future was rolled back.
      Returns:
      true if the transaction associated to this future was rolled back.
    • isCommitted

      boolean isCommitted()
      Returns true if the transaction associated to this future is committed. The transaction can success or fail with exception, in all of these cases, this method will return true.
      Returns:
      true if the transaction associated to this future is committed.
    • get

      V get()
      Waits if necessary for the transaction to be committed, and then retrieves its result.
      Returns:
      the transaction result
      Throws:
      CancellationException - if the transaction was cancelled with rollback