Interface TFuture<V>
public interface TFuture<V>
-
Method Summary
Modifier and TypeMethodDescriptionget()Waits if necessary for the transaction to be committed, and then retrieves its result.booleanReturnstrueif the transaction associated to this future is committed.booleanReturnstrueif the transaction associated to this future was rolled back.
-
Method Details
-
isRollback
boolean isRollback()Returnstrueif the transaction associated to this future was rolled back.- Returns:
trueif the transaction associated to this future was rolled back.
-
isCommitted
boolean isCommitted()Returnstrueif the transaction associated to this future is committed. The transaction can success or fail with exception, in all of these cases, this method will returntrue.- Returns:
trueif 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
-