Class CollectionManager<T>
java.lang.Object
org.burningwave.core.extension.concurrent.CollectionManager<T>
- All Implemented Interfaces:
AutoCloseable,org.burningwave.core.Cleanable,org.burningwave.core.Closeable,org.burningwave.core.Component,org.burningwave.core.Identifiable,org.burningwave.core.iterable.Properties.Listener,org.burningwave.core.Memorizer
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(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.Cleanable
clear, clearInBackgroundMethods inherited from interface org.burningwave.core.Closeable
close, closeResources, closeResources, createCloseResoucesTask, createCloseResoucesTaskMethods inherited from interface org.burningwave.core.Identifiable
getId, getOperationIdMethods inherited from interface org.burningwave.core.Memorizer
getOrCreateTemporaryFolder, getOrCreateTemporaryFolder, getTemporaryFolderPrefixMethods inherited from interface org.burningwave.core.iterable.Properties.Listener
checkAndListenTo, checkAndUnregister, listenTo, processChangeNotification, unregister
-
Method Details
-
create
public static <T> CollectionManager<T> create(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
-