|
Avaya Conferencing Provider API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
RESULT - The result type returned by this operation's get method.IMPL - The final implementation type of this operation.public interface Operation<RESULT,IMPL extends Operation<RESULT,IMPL>>
Describes operations exposed by a conferencing object.
| Nested Class Summary | |
|---|---|
static class |
Operation.Impact
Describes the impact of an operation. |
| Method Summary | |
|---|---|
void |
await()
Blocks until the operation is completed. |
boolean |
await(long timeout,
java.util.concurrent.TimeUnit unit)
Causes the current thread to wait until the operation is completed, unless the thread is interrupted, or the specified waiting time elapses. |
IMPL |
clone()
Creates and returns a copy of this operation. |
RESULT |
get()
Waits if necessary for the operation to complete, and then retrieves its result. |
RESULT |
get(long timeout,
java.util.concurrent.TimeUnit unit)
Waits if necessary for at most the given time for the operation to complete, and then retrieves its result, if available. |
Operation.Impact |
getImpact()
Returns the impact of the operation. |
Verb |
getVerb()
This gets the verb that describes this operation. |
boolean |
isDone()
Returns true if this operation completed. |
boolean |
isSubmitted()
Returns true if this operation has been submitted for execution. |
void |
set(java.util.concurrent.Future<RESULT> future)
This method is called by the ConferencingObject when the operation is accepted for execution. |
| Method Detail |
|---|
IMPL clone()
Cloneable
void await()
throws java.lang.InterruptedException
If the operation is completed then this method returns immediately.
If the operation has yet to complete then the current thread becomes disabled for thread scheduling purposes and lies dormant until one of two things happen:
If the current thread:
InterruptedException is thrown and the current thread's interrupted status is cleared.
java.lang.InterruptedException - if the current thread is interrupted while waiting.
boolean await(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
If the operation is completed then this method returns immediately.
If the operation has yet to complete then the current thread becomes disabled for thread scheduling purposes and lies dormant until one of three things happen:
If the operation completes then the method returns with the value true.
If the current thread:
If the specified waiting time elapses then the value false is returned. If the time is less than or equal to zero, the method will not wait at all.
timeout - The maximum time to wait.unit - The time unit of the timeout argument.
true If the operation completed and false if the waiting time elapsed before the
operation completed.
java.lang.InterruptedException - if the current thread is interrupted while waiting.
RESULT get()
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException
java.util.concurrent.ExecutionException - If the computation threw an exception.
java.lang.InterruptedException - If the current thread was interrupted while waiting.
RESULT get(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException,
java.util.concurrent.ExecutionException,
java.util.concurrent.TimeoutException
timeout - The maximum time to wait.unit - The time unit of the timeout argument.
java.util.concurrent.ExecutionException - If the computation threw an exception.
java.lang.InterruptedException - If the current thread was interrupted while waiting.
java.util.concurrent.TimeoutException - If the wait timed out.Operation.Impact getImpact()
Verb getVerb()
boolean isDone()
true if this operation completed. Completion may be due to normal termination or an
exception -- in both of these cases, this method will return true.
true if this operation completed.boolean isSubmitted()
true if this operation has been submitted for execution.
true if this operation has been submitted for execution.void set(java.util.concurrent.Future<RESULT> future)
future - The future for completion of the operation.
|
Avaya Conferencing Provider API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||