|
Avaya Conferencing Provider API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BulkOperation<RESULT>
Performs an operation against a collection of conferencing objects.
| Method Summary | |
|---|---|
void |
await()
Blocks until all of the operations are completed. |
boolean |
await(long timeout,
java.util.concurrent.TimeUnit unit)
Causes the current thread to wait until all of the operations are completed, unless the thread is interrupted, or the specified waiting time elapses. |
java.util.Map<ConferencingObject<? extends ConferencingObject<?>>,RESULT> |
getCompleted()
Returns a map keyed on the conferencing object with the values being the results of all the completed operations. |
java.util.Map<ConferencingObject<? extends ConferencingObject<?>>,java.lang.Throwable> |
getFailed()
Returns a map keyed on the conferencing object with the values being the exceptions thrown by all the completed failed operations. |
boolean |
isDone()
Returns true if all operations have completed. |
boolean |
isSubmitted()
Returns true if the operations have been submitted. |
BulkOperation<RESULT> |
perform()
Submits the operation against all the target objects. |
BulkOperation<RESULT> |
performAs(CPAuthentication authentication)
Submits the operation against all the targets using a specific authentication. |
| Method Detail |
|---|
boolean isSubmitted()
true if the operations have been submitted.
true if the operations have been submitted.BulkOperation<RESULT> perform()
this to support method chaining.BulkOperation<RESULT> performAs(CPAuthentication authentication)
authentication - The authentication.
this to support method chaining.boolean isDone()
true if all operations have completed.
true if all operations have completed.java.util.Map<ConferencingObject<? extends ConferencingObject<?>>,RESULT> getCompleted()
java.util.Map<ConferencingObject<? extends ConferencingObject<?>>,java.lang.Throwable> getFailed()
boolean await(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
If all the operation are completed then this method returns immediately.
If any 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 all of the operations complete 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 all of the operations completed and false if the waiting time elapsed before the
operation completed.
java.lang.InterruptedException - if the current thread is interrupted while waiting.
void await()
throws java.lang.InterruptedException
If all of the operation are completed then this method returns immediately.
If any 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.
|
Avaya Conferencing Provider API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||