All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kurento.client.TFuture Maven / Gradle / Ivy

Go to download

Kurento Client The Kurento Client project allows server applications to control media server resources.

There is a newer version: 7.1.0
Show newest version

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