T- object type
public final class CountDownCompleter<T> extends Object
consumercallback until a set number of actions tracked by a
Each completion is recorded by invoking the
method. 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.
|Constructor and Description|
|Modifier and Type||Method and Description|
Records a single completion.
Returns if this instance has completed.
Returns the object.
public T object()
public void countDown()
If this instance has already completed, this method has no effect
public boolean isComplete()
Copyright © 2016. All rights reserved.