org.kurento.client.TFuture Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kurento-client Show documentation
Show all versions of kurento-client Show documentation
Kurento Client
The Kurento Client project allows server applications to control media server resources.
package org.kurento.client;
public interface TFuture {
/**
* Returns true if the transaction associated to this future was rolled back.
*
* @return true if the transaction associated to this future was rolled back.
*/
boolean isRollback();
/**
* 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.
*
* @return true if the transaction associated to this future is committed.
*/
boolean isCommitted();
/**
* Waits if necessary for the transaction to be committed, and then retrieves its result.
*
* @return the transaction result
* @throws java.util.concurrent.CancellationException
* if the transaction was cancelled with rollback
* @throws java.util.concurrent.ExecutionException
* if the transaction threw an exception when committed
* @throws InterruptedException
* if the current thread was interrupted while waiting
*/
V get();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy