Package org.kurento.client
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.boolean
Returnstrue
if the transaction associated to this future is committed.boolean
Returnstrue
if the transaction associated to this future was rolled back.
-
Method Details
-
isRollback
boolean isRollback()Returnstrue
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()Returnstrue
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 returntrue
.- 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
-