Package org.ojalgo.type.function
Class QueuedSupplier<T>
java.lang.Object
org.ojalgo.type.function.QueuedSupplier<T>
- All Implemented Interfaces:
AutoCloseable
,Iterable<T>
,Supplier<T>
,AutoFunctional
,AutoSupplier<T>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionQueuedSupplier
(ExecutorService executor, BlockingQueue<T> queue, Supplier<T>... suppliers) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ojalgo.type.function.AutoSupplier
get, iterator, processAll
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
myFutures
-
myQueue
-
mySuppliers
-
-
Constructor Details
-
QueuedSupplier
QueuedSupplier(ExecutorService executor, BlockingQueue<T> queue, Supplier<T>... suppliers)
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceAutoSupplier<T>
- Throws:
Exception
-
drainTo
- Specified by:
drainTo
in interfaceAutoSupplier<T>
-
read
- Specified by:
read
in interfaceAutoSupplier<T>
-
isDone
private boolean isDone()
-