Class CollectionManager<T>
java.lang.Object
org.burningwave.core.extension.concurrent.CollectionManager<T>
- All Implemented Interfaces:
AutoCloseable,org.burningwave.core.Component,org.burningwave.core.iterable.Properties.Listener,org.burningwave.core.ManagedLogger
public class CollectionManager<T> extends Object implements org.burningwave.core.Component
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCollectionManager.Cycler -
Method Summary
Modifier and Type Method Description voidadd(Collection<T> coll)static <T> CollectionManager<T>create(org.burningwave.core.concurrent.ConcurrentHelper concurrentHelper, String threadsGroupName, int threadsNumber, int threadPriority, long waitInterval)protected voidfinalize()org.burningwave.core.extension.concurrent.CollectionWrapper<T>get(Collection<CompletableFuture<?>> coll)voidmarkAsUseless(Collection<CompletableFuture<?>> coll)voidstart()voidstop()Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.burningwave.core.Component
close, getOrCreateTemporaryFolder, getTemporaryFolderPrefix
-
Method Details
-
create
public static <T> CollectionManager<T> create(org.burningwave.core.concurrent.ConcurrentHelper concurrentHelper, String threadsGroupName, int threadsNumber, int threadPriority, long waitInterval) -
start
public void start() -
add
-
get
public org.burningwave.core.extension.concurrent.CollectionWrapper<T> get(Collection<CompletableFuture<?>> coll) -
markAsUseless
-
stop
public void stop() -
finalize
-