Avaya Conferencing Provider API

com.avaya.conferencing.api.acp.control.operations
Class CompletedFuture<V>

java.lang.Object
  extended by com.avaya.conferencing.api.acp.control.operations.CompletedFuture<V>
Type Parameters:
V - The result type returned by this Future's get method.
All Implemented Interfaces:
java.util.concurrent.Future<V>

public final class CompletedFuture<V>
extends java.lang.Object
implements java.util.concurrent.Future<V>

An implementation of the Future interface that is already completed.

Since:
5.1.0.0.29

Constructor Summary
CompletedFuture(java.lang.Throwable cause)
          Creates a new CompletedFuture instance.
CompletedFuture(V value)
          Creates a new CompletedFuture instance.
 
Method Summary
 boolean cancel(boolean mayInterruptIfRunning)
          
 V get()
          
 V get(long timeout, java.util.concurrent.TimeUnit unit)
          
 boolean isCancelled()
          
 boolean isDone()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompletedFuture

public CompletedFuture(V value)
Creates a new CompletedFuture instance.

Parameters:
value - The final value of this Future
Since:
5.1.0.0.29

CompletedFuture

public CompletedFuture(java.lang.Throwable cause)
Creates a new CompletedFuture instance.

Parameters:
cause - The exception that this Future will raise on get.
Since:
5.1.0.0.29
Method Detail

cancel

public boolean cancel(boolean mayInterruptIfRunning)

Specified by:
cancel in interface java.util.concurrent.Future<V>
Since:
5.1.0.0.29

isCancelled

public boolean isCancelled()

Specified by:
isCancelled in interface java.util.concurrent.Future<V>

isDone

public boolean isDone()

Specified by:
isDone in interface java.util.concurrent.Future<V>
Since:
5.1.0.0.29

get

public V get()
      throws java.lang.InterruptedException,
             java.util.concurrent.ExecutionException

Specified by:
get in interface java.util.concurrent.Future<V>
Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
Since:
5.1.0.0.29

get

public V get(long timeout,
             java.util.concurrent.TimeUnit unit)
      throws java.lang.InterruptedException,
             java.util.concurrent.ExecutionException,
             java.util.concurrent.TimeoutException

Specified by:
get in interface java.util.concurrent.Future<V>
Throws:
java.lang.InterruptedException
java.util.concurrent.ExecutionException
java.util.concurrent.TimeoutException
Since:
5.1.0.0.29

Avaya Conferencing Provider API

Copyright © 2008-2009 Avaya. All Rights Reserved.