public class Completion
extends java.lang.Object
| Constructor and Description |
|---|
Completion() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isComplete()
Non-blocking snapshot test for completion.
|
void |
setComplete()
Signal completion.
|
void |
waitUntilComplete()
Wait (forever) until completion is signalled.
|
void |
waitUntilComplete(long timeout,
java.util.concurrent.TimeUnit unit)
Wait for a time limit until completion is signalled.
|
void |
waitUntilComplete(TimeTracker tt)
Wait for a time limit until completion is signalled.
|
public void setComplete()
public boolean isComplete()
true if this operation has completed, false otherwisepublic void waitUntilComplete()
throws java.lang.InterruptedException
java.lang.InterruptedException - if thread is interrupted while waiting.public void waitUntilComplete(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.util.concurrent.TimeoutException,
java.lang.InterruptedException
timeout - time to wait (in units).unit - units of time for timeout.java.util.concurrent.TimeoutException - if timed out before completion is signalled.java.lang.InterruptedException - if thread is interrupted while waiting.public void waitUntilComplete(TimeTracker tt) throws java.util.concurrent.TimeoutException, java.lang.InterruptedException
tt - time tracker.java.util.concurrent.TimeoutException - if timed out before completion is signalled.java.lang.InterruptedException - if thread is interrupted while waiting.Copyright © 2023. All rights reserved.