- Type Parameters:
T- object type
public final class CountDownCompleter<T> extends ObjectA synchronization utility that defers invocation of a
consumercallback until a set number of actions tracked by a
Each completion is recorded by invoking the
countDownmethod. When the total number of completions is equal to the preset counter value, this instance is marked as completed and the callback invoked by supplying the object held by this instance.
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
countDown()Records a single completion.
isComplete()Returns if this instance has completed.
object()Returns the object.
public T object()Returns the object.
public void countDown()Records a single completion.
If this instance has already completed, this method has no effect
public boolean isComplete()Returns if this instance has completed.