|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ITopologicalSortAsyncResult
Returned by an asynchronous sort call. Used to know or await for notification of asynchronous processing completion.
| Method Summary | |
|---|---|
boolean |
await()
Provided for conveniency. |
boolean |
await(long timeout,
TimeUnit unit)
Provided for conveniency. |
boolean |
awaitUninterruptibly()
Provided for conveniency. |
boolean |
awaitUninterruptibly(long timeout,
TimeUnit unit)
Provided for conveniency. |
boolean |
discontinueScheduling()
Discontinues further scheduling of additional vertices for processing. |
ExecutorService |
getExecutorService()
Provides a reference to the ExecutorService that asynchronous processing was called with. |
boolean |
isDone()
Determines if all processing of vertices has completed. |
boolean |
isProcessingDiscontinued()
Determines if discontinueScheduling() has been called previously. |
boolean |
isSuccessful()
Determines if all vertices have been processed without incident. |
boolean |
waitForCompletion()
Waits indefinitely and uninterruptibly for the asynchronous sort to signal that it's done processing. |
boolean |
waitForCompletion(long timeout,
TimeUnit unit)
Waits indefinitely and uninterruptibly for the asynchronous sort to signal that it's done processing. |
| Method Detail |
|---|
boolean isDone()
boolean isSuccessful()
waitForCompletion(), await(), or awaitUninterruptibly()
have returned. Calling waitForCompletion() will return this same value after all vertices have been
processed. It's suggested you use waitForCompletion().
boolean isProcessingDiscontinued()
discontinueScheduling() has been called previously.
discontinueScheduling() has been called previously, otherwise false.ExecutorService getExecutorService()
ExecutorService that asynchronous processing was called with.
ExecutorService instance.boolean discontinueScheduling()
getExecutorService()
instance. Instead, call this method and then waitForCompletion() which will
allow all previously submitted vertices to drain.
boolean waitForCompletion()
boolean waitForCompletion(long timeout,
TimeUnit unit)
timeout - Length of time in TimeUnit units to wait for completion.unit - TimeUnit unit of time represented by the timeout.
boolean awaitUninterruptibly()
waitForCompletion().
isSuccessful() or simply call waitForCompletion() instead.
boolean awaitUninterruptibly(long timeout,
TimeUnit unit)
waitForCompletion().
timeout - Length of time in TimeUnit units to wait for completion.unit - TimeUnit unit of time represented by the timeout.
isSuccessful() or simply call waitForCompletion() instead.
boolean await()
throws InterruptedException
waitForCompletion().
isSuccessful() or simply call waitForCompletion() instead.
InterruptedException
boolean await(long timeout,
TimeUnit unit)
throws InterruptedException
waitForCompletion().
timeout - Length of time in TimeUnit units to wait for completion.unit - TimeUnit unit of time represented by the timeout.
isSuccessful() or simply call waitForCompletion() instead.
InterruptedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||