Interface TFuture<V>


  • public interface TFuture<V>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      V get()
      Waits if necessary for the transaction to be committed, and then retrieves its result.
      boolean isCommitted()
      Returns true if the transaction associated to this future is committed.
      boolean isRollback()
      Returns true if the transaction associated to this future was rolled back.
    • Method Detail

      • 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
        ExecutionException - if the transaction threw an exception when committed
        InterruptedException - if the current thread was interrupted while waiting