java.lang.Object
io.qt.concurrent.QtConcurrent
High-level APIs that make it possible to write multi-threaded programs without using low-level threading primitives
Java wrapper for Qt header file QtConcurrent
- Since:
- This class was introduced in Qt 4.4.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceCallable with five arguments.static interfaceCallable with five arguments.static interfaceCallable with five arguments.static interfaceCallable with five arguments.static interfaceCallable with five arguments.static interfaceAn implementation of this interface is given to one of QtConcurrent's filtered() methods.static interfaceAn implemetation of this interface is given one to QtConcurrent's map() methods.static interfaceImplement this interface to perform a mapped operation.static classJava wrapper for Qt classQtConcurrent::MedianDoublestatic interfaceImplement this interface in order to perform a reduce operation.static enumJava wrapper for Qt enumQtConcurrent::ReduceOptionstatic final classQFlagstype for enumQtConcurrent.ReduceOptionstatic interfaceRunnable with one argument.static interfaceRunnable with two arguments.static interfaceRunnable with three arguments.static interfaceRunnable with four arguments.static interfaceRunnable with five arguments.static final classJava wrapper for Qt's classQtConcurrent::ThreadEngineStarterstatic enumJava wrapper for Qt enumQtConcurrent::ThreadFunctionResult -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> voidblockingFilter(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor) static <T> QList<T>blockingFiltered(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor) static <U,T> U blockingFilteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor) static <U,T> U blockingFilteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOption ... options) static <U,T> U blockingFilteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOptions options) static <T> voidblockingMap(Collection<T> sequence, QtConcurrent.MapFunctor<T> functor) static <U,T> QList<U> blockingMapped(Collection<T> sequence, QtConcurrent.MappedFunctor<U, T> functor) static <U,V, T> U blockingMappedReduced(Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor) static <U,V, T> U blockingMappedReduced(Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOption ... options) static <U,V, T> U blockingMappedReduced(Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOptions options) static <T> QFuture<@QtPrimitiveType Void>filter(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor) static <T> QFuture<T>filtered(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor) static <U,T> QFuture<U> filteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor) static <U,T> QFuture<U> filteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOption ... options) static <U,T> QFuture<U> filteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOptions options) static <T> QFuture<@QtPrimitiveType Void>map(Collection<T> sequence, QtConcurrent.MapFunctor<T> functor) static <U,T> QFuture<U> mapped(Collection<T> sequence, QtConcurrent.MappedFunctor<U, T> functor) static <U,V, T> QFuture<U> mappedReduced(Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor) static <U,V, T> QFuture<U> mappedReduced(Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOption ... options) static <U,V, T> QFuture<U> mappedReduced(Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOptions options) static <T,A> QFuture<T> run(QtConcurrent.Callable1<T, A> runnable, A a) static <T,A, B> QFuture<T> run(QtConcurrent.Callable2<T, A, B> runnable, A a, B b) static <T,A, B, C>
QFuture<T>run(QtConcurrent.Callable3<T, A, B, C> runnable, A a, B b, C c) static <T,A, B, C, D>
QFuture<T>run(QtConcurrent.Callable4<T, A, B, C, D> runnable, A a, B b, C c, D d) static <T,A, B, C, D, E>
QFuture<T>run(QtConcurrent.Callable5<T, A, B, C, D, E> runnable, A a, B b, C c, D d, E e) static <A> QFuture<@QtPrimitiveType Void>run(QtConcurrent.Runnable1<A> runnable, A a) static <A,B> QFuture<@QtPrimitiveType Void> run(QtConcurrent.Runnable2<A, B> runnable, A a, B b) static <A,B, C> QFuture<@QtPrimitiveType Void> run(QtConcurrent.Runnable3<A, B, C> runnable, A a, B b, C c) static <A,B, C, D>
QFuture<@QtPrimitiveType Void>run(QtConcurrent.Runnable4<A, B, C, D> runnable, A a, B b, C c, D d) static <A,B, C, D, E>
QFuture<@QtPrimitiveType Void>run(QtConcurrent.Runnable5<A, B, C, D, E> runnable, A a, B b, C c, D d, E e) static <T,A> QFuture<T> run(QThreadPool threadPool, QtConcurrent.Callable1<T, A> runnable, A a) static <T,A, B> QFuture<T> run(QThreadPool threadPool, QtConcurrent.Callable2<T, A, B> runnable, A a, B b) static <T,A, B, C>
QFuture<T>run(QThreadPool threadPool, QtConcurrent.Callable3<T, A, B, C> runnable, A a, B b, C c) static <T,A, B, C, D>
QFuture<T>run(QThreadPool threadPool, QtConcurrent.Callable4<T, A, B, C, D> runnable, A a, B b, C c, D d) static <T,A, B, C, D, E>
QFuture<T>run(QThreadPool threadPool, QtConcurrent.Callable5<T, A, B, C, D, E> runnable, A a, B b, C c, D d, E e) static <A> QFuture<@QtPrimitiveType Void>run(QThreadPool threadPool, QtConcurrent.Runnable1<A> runnable, A a) static <A,B> QFuture<@QtPrimitiveType Void> run(QThreadPool threadPool, QtConcurrent.Runnable2<A, B> runnable, A a, B b) static <A,B, C> QFuture<@QtPrimitiveType Void> run(QThreadPool threadPool, QtConcurrent.Runnable3<A, B, C> runnable, A a, B b, C c) static <A,B, C, D>
QFuture<@QtPrimitiveType Void>run(QThreadPool threadPool, QtConcurrent.Runnable4<A, B, C, D> runnable, A a, B b, C c, D d) static <A,B, C, D, E>
QFuture<@QtPrimitiveType Void>run(QThreadPool threadPool, QtConcurrent.Runnable5<A, B, C, D, E> runnable, A a, B b, C c, D d, E e) static QFuture<@QtPrimitiveType Void>run(QThreadPool threadPool, Runnable runnable) static <T> QFuture<T>run(QThreadPool threadPool, Callable<T> callable) static QFuture<@QtPrimitiveType Void>static <T> QFuture<T>static <T> QtConcurrent.ThreadEngineStarter<T>startFiltered(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor) static <U,T> QtConcurrent.ThreadEngineStarter<U> startFilteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOption ... options) static <U,T> QtConcurrent.ThreadEngineStarter<U> startFilteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOptions options) static <T> QtConcurrent.ThreadEngineStarter<@QtPrimitiveType Void>startMap(Collection<T> sequence, QtConcurrent.MapFunctor<T> functor) static <U,T> QtConcurrent.ThreadEngineStarter<U> startMapped(Collection<T> sequence, QtConcurrent.MappedFunctor<U, T> functor) static <U,V, T> QtConcurrent.ThreadEngineStarter<U> startMappedReduced(Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOptions options) static <U,V, T> QtConcurrent.ThreadEngineStarter<U> startMappedReduced(Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOption... options)
-
Method Details
-
map
@QtUninvokable public static <T> QFuture<@QtPrimitiveType Void> map(Collection<T> sequence, QtConcurrent.MapFunctor<T> functor) -
blockingMap
@QtUninvokable public static <T> void blockingMap(Collection<T> sequence, QtConcurrent.MapFunctor<T> functor) -
mapped
@QtUninvokable public static <U,T> QFuture<U> mapped(Collection<T> sequence, QtConcurrent.MappedFunctor<U, T> functor) -
blockingMapped
@QtUninvokable public static <U,T> QList<U> blockingMapped(Collection<T> sequence, QtConcurrent.MappedFunctor<U, T> functor) -
mappedReduced
@QtUninvokable public static <U,V, QFuture<U> mappedReducedT> (Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor) -
mappedReduced
@QtUninvokable public static <U,V, QFuture<U> mappedReducedT> (Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOption ... options) -
mappedReduced
@QtUninvokable public static <U,V, QFuture<U> mappedReducedT> (Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOptions options) -
blockingMappedReduced
@QtUninvokable public static <U,V, U blockingMappedReducedT> (Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor) -
blockingMappedReduced
@QtUninvokable public static <U,V, U blockingMappedReducedT> (Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOption ... options) -
blockingMappedReduced
@QtUninvokable public static <U,V, U blockingMappedReducedT> (Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOptions options) -
filter
@QtUninvokable public static <T> QFuture<@QtPrimitiveType Void> filter(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor) -
blockingFilter
@QtUninvokable public static <T> void blockingFilter(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor) -
filtered
@QtUninvokable public static <T> QFuture<T> filtered(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor) -
blockingFiltered
@QtUninvokable public static <T> QList<T> blockingFiltered(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor) -
filteredReduced
@QtUninvokable public static <U,T> QFuture<U> filteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor) -
filteredReduced
@QtUninvokable public static <U,T> QFuture<U> filteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOption ... options) -
filteredReduced
@QtUninvokable public static <U,T> QFuture<U> filteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOptions options) -
blockingFilteredReduced
@QtUninvokable public static <U,T> U blockingFilteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor) -
blockingFilteredReduced
@QtUninvokable public static <U,T> U blockingFilteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOption ... options) -
blockingFilteredReduced
@QtUninvokable public static <U,T> U blockingFilteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOptions options) -
run
-
run
-
run
-
run
@QtUninvokable public static QFuture<@QtPrimitiveType Void> run(QThreadPool threadPool, Runnable runnable) -
run
@QtUninvokable public static <A> QFuture<@QtPrimitiveType Void> run(QtConcurrent.Runnable1<A> runnable, A a) -
run
@QtUninvokable public static <A> QFuture<@QtPrimitiveType Void> run(QThreadPool threadPool, QtConcurrent.Runnable1<A> runnable, A a) -
run
@QtUninvokable public static <A,B> QFuture<@QtPrimitiveType Void> run(QtConcurrent.Runnable2<A, B> runnable, A a, B b) -
run
@QtUninvokable public static <A,B> QFuture<@QtPrimitiveType Void> run(QThreadPool threadPool, QtConcurrent.Runnable2<A, B> runnable, A a, B b) -
run
@QtUninvokable public static <A,B, QFuture<@QtPrimitiveType Void> runC> (QtConcurrent.Runnable3<A, B, C> runnable, A a, B b, C c) -
run
@QtUninvokable public static <A,B, QFuture<@QtPrimitiveType Void> runC> (QThreadPool threadPool, QtConcurrent.Runnable3<A, B, C> runnable, A a, B b, C c) -
run
@QtUninvokable public static <A,B, QFuture<@QtPrimitiveType Void> runC, D> (QtConcurrent.Runnable4<A, B, C, D> runnable, A a, B b, C c, D d) -
run
@QtUninvokable public static <A,B, QFuture<@QtPrimitiveType Void> runC, D> (QThreadPool threadPool, QtConcurrent.Runnable4<A, B, C, D> runnable, A a, B b, C c, D d) -
run
@QtUninvokable public static <A,B, QFuture<@QtPrimitiveType Void> runC, D, E> (QtConcurrent.Runnable5<A, B, C, D, E> runnable, A a, B b, C c, D d, E e) -
run
@QtUninvokable public static <A,B, QFuture<@QtPrimitiveType Void> runC, D, E> (QThreadPool threadPool, QtConcurrent.Runnable5<A, B, C, D, E> runnable, A a, B b, C c, D d, E e) -
run
-
run
@QtUninvokable public static <T,A> QFuture<T> run(QThreadPool threadPool, QtConcurrent.Callable1<T, A> runnable, A a) -
run
@QtUninvokable public static <T,A, QFuture<T> runB> (QtConcurrent.Callable2<T, A, B> runnable, A a, B b) -
run
@QtUninvokable public static <T,A, QFuture<T> runB> (QThreadPool threadPool, QtConcurrent.Callable2<T, A, B> runnable, A a, B b) -
run
@QtUninvokable public static <T,A, QFuture<T> runB, C> (QtConcurrent.Callable3<T, A, B, C> runnable, A a, B b, C c) -
run
@QtUninvokable public static <T,A, QFuture<T> runB, C> (QThreadPool threadPool, QtConcurrent.Callable3<T, A, B, C> runnable, A a, B b, C c) -
run
@QtUninvokable public static <T,A, QFuture<T> runB, C, D> (QtConcurrent.Callable4<T, A, B, C, D> runnable, A a, B b, C c, D d) -
run
@QtUninvokable public static <T,A, QFuture<T> runB, C, D> (QThreadPool threadPool, QtConcurrent.Callable4<T, A, B, C, D> runnable, A a, B b, C c, D d) -
run
@QtUninvokable public static <T,A, QFuture<T> runB, C, D, E> (QtConcurrent.Callable5<T, A, B, C, D, E> runnable, A a, B b, C c, D d, E e) -
run
@QtUninvokable public static <T,A, QFuture<T> runB, C, D, E> (QThreadPool threadPool, QtConcurrent.Callable5<T, A, B, C, D, E> runnable, A a, B b, C c, D d, E e) -
startMap
@QtUninvokable public static <T> QtConcurrent.ThreadEngineStarter<@QtPrimitiveType Void> startMap(Collection<T> sequence, QtConcurrent.MapFunctor<T> functor) -
startMapped
@QtUninvokable public static <U,T> QtConcurrent.ThreadEngineStarter<U> startMapped(Collection<T> sequence, QtConcurrent.MappedFunctor<U, T> functor) -
startMappedReduced
@QtUninvokable public static <U,V, QtConcurrent.ThreadEngineStarter<U> startMappedReducedT> (Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOptions options) -
startMappedReduced
@QtUninvokable public static <U,V, QtConcurrent.ThreadEngineStarter<U> startMappedReducedT> (Collection<T> sequence, QtConcurrent.MappedFunctor<V, T> functor, QtConcurrent.ReduceFunctor<U, V> reduceFunctor, QtConcurrent.ReduceOption... options) -
startFilteredReduced
@QtUninvokable public static <U,T> QtConcurrent.ThreadEngineStarter<U> startFilteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOption ... options) -
startFilteredReduced
@QtUninvokable public static <U,T> QtConcurrent.ThreadEngineStarter<U> startFilteredReduced(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor, QtConcurrent.ReduceFunctor<U, T> reduceFunctor, QtConcurrent.ReduceOptions options) -
startFiltered
@QtUninvokable public static <T> QtConcurrent.ThreadEngineStarter<T> startFiltered(Collection<T> sequence, QtConcurrent.FilteredFunctor<T> filteredFunctor)
-