Class FutureCollector
java.lang.Object
ch.tocco.nice2.persist.core.api.util.FutureCollector
Used to collect futures of
CollectingAfterCommitListener
.
Please don't collect futures in production environment. However, collecting futures in unit tests
might be useful since it allows to await the completion of those.- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
futures
-
-
Constructor Details
-
FutureCollector
public FutureCollector()
-
-
Method Details
-
add
-
getFutures
-
discarding
- Returns:
- a
FutureCollector.DiscardingFutureCollector
.
-
collecting
- Returns:
- a
FutureCollector.CollectionFutureCollector
.
-