mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

matthew_swift
15.58.2009 388f25a9dc58704ea19a333ba9a28054d48590b1
sdk/src/org/opends/sdk/FutureResult.java
File was renamed from sdk/src/org/opends/sdk/ResultFuture.java
@@ -29,7 +29,6 @@
import java.util.concurrent.CancellationException;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
@@ -43,7 +42,7 @@
 * @param <S>
 *          The type of result returned by this future.
 */
public interface ResultFuture<S> extends Future<S>
public interface FutureResult<S> extends Future<S>
{
  /**
   * Attempts to cancel the request. This attempt will fail if the
@@ -79,14 +78,10 @@
   * @throws ErrorResultException
   *           If the result code indicates that the request failed for
   *           some reason.
   * @throws CancellationException
   *           If the request was cancelled using a call to
   *           {@link #cancel}.
   * @throws InterruptedException
   *           If the current thread was interrupted while waiting.
   */
  S get() throws ErrorResultException, CancellationException,
      InterruptedException;
  S get() throws ErrorResultException, InterruptedException;
@@ -107,23 +102,20 @@
   *           some reason.
   * @throws TimeoutException
   *           If the wait timed out.
   * @throws CancellationException
   *           If the request was cancelled using a call to
   *           {@link #cancel}.
   * @throws InterruptedException
   *           If the current thread was interrupted while waiting.
   */
  S get(long timeout, TimeUnit unit) throws ErrorResultException,
      TimeoutException, CancellationException, InterruptedException;
      TimeoutException, InterruptedException;
  /**
   * Returns the message ID of the request.
   * Returns the request ID of the request if appropriate.
   *
   * @return The message ID.
   * @return The request ID, or {@code -1} if there is no request ID.
   */
  int getMessageID();
  int getRequestID();