Index
All Classes and Interfaces|All Packages
C
- cancel() - Method in interface com.softwaremill.jox.structured.CancellableFork
-
Interrupts the fork, and blocks until it completes with a result.
- CancellableFork<T> - Interface in com.softwaremill.jox.structured
- cancelNow() - Method in interface com.softwaremill.jox.structured.CancellableFork
-
Interrupts the fork, and returns immediately, without waiting for the fork to complete.
- com.softwaremill.jox.structured - module com.softwaremill.jox.structured
- com.softwaremill.jox.structured - package com.softwaremill.jox.structured
F
- fork(Callable<T>) - Method in class com.softwaremill.jox.structured.Scope
-
Starts a fork (logical thread of execution), which is guaranteed to complete before the enclosing
supervised(Scoped)
block completes. - Fork<T> - Interface in com.softwaremill.jox.structured
-
A fork started using
Scope.fork(java.util.concurrent.Callable<T>)
,Scope.forkUser(java.util.concurrent.Callable<T>)
,UnsupervisedScope.forkCancellable(java.util.concurrent.Callable<T>)
orUnsupervisedScope.forkUnsupervised(java.util.concurrent.Callable<T>)
, backed by a (virtual) thread. - forkCancellable(Callable<T>) - Method in class com.softwaremill.jox.structured.UnsupervisedScope
-
Starts a fork (logical thread of execution), which is guaranteed to complete before the enclosing
supervised(Scoped)
, orunsupervised(ScopedUnsupervised)
block completes, and which can be cancelled on-demand. - forkUnsupervised(Callable<T>) - Method in class com.softwaremill.jox.structured.UnsupervisedScope
-
Starts a fork (logical thread of execution), which is guaranteed to complete before the enclosing
supervised(Scoped)
, orunsupervised(ScopedUnsupervised)
block completes. - forkUser(Callable<T>) - Method in class com.softwaremill.jox.structured.Scope
-
Starts a fork (logical thread of execution), which is guaranteed to complete before the enclosing
supervised(Scoped)
block completes.
J
- join() - Method in interface com.softwaremill.jox.structured.Fork
-
Blocks until the fork completes with a result.
P
- par(List<Callable<T>>) - Static method in class com.softwaremill.jox.structured.Par
-
Runs the given computations in parallel.
- Par - Class in com.softwaremill.jox.structured
- Par() - Constructor for class com.softwaremill.jox.structured.Par
- parLimit(int, List<Callable<T>>) - Static method in class com.softwaremill.jox.structured.Par
-
Runs the given computations in parallel, with at most
parallelism
running in parallel at the same time.
R
- race(Callable<T>, Callable<T>) - Static method in class com.softwaremill.jox.structured.Race
-
Returns the result of the first computation to complete successfully, or if all fail - throws the first exception.
- race(Callable<T>, Callable<T>, Callable<T>) - Static method in class com.softwaremill.jox.structured.Race
-
Returns the result of the first computation to complete successfully, or if all fail - throws the first exception.
- race(List<Callable<T>>) - Static method in class com.softwaremill.jox.structured.Race
-
Returns the result of the first computation to complete successfully, or if all fail - throws the first exception.
- Race - Class in com.softwaremill.jox.structured
- Race() - Constructor for class com.softwaremill.jox.structured.Race
- raceResult(Callable<T>, Callable<T>) - Static method in class com.softwaremill.jox.structured.Race
-
Returns the result of the first computation to complete (either successfully or with an exception).
- raceResult(Callable<T>, Callable<T>, Callable<T>) - Static method in class com.softwaremill.jox.structured.Race
-
Returns the result of the first computation to complete (either successfully or with an exception).
- raceResult(List<Callable<T>>) - Static method in class com.softwaremill.jox.structured.Race
-
Returns the result of the first computation to complete (either successfully or with an exception).
- run(Scope) - Method in interface com.softwaremill.jox.structured.Scoped
- run(UnsupervisedScope) - Method in interface com.softwaremill.jox.structured.ScopedUnsupervised
S
- Scope - Class in com.softwaremill.jox.structured
-
Capability granted by an
supervised(Scoped)
orunsupervised(ScopedUnsupervised)
concurrency scope. - Scoped<T> - Interface in com.softwaremill.jox.structured
-
A functional interface, capturing a computation which runs using the
Scope
capability to fork computations. - ScopedUnsupervised<T> - Interface in com.softwaremill.jox.structured
-
A functional interface, capturing a computation which runs using the
ScopedUnsupervised
capability to fork computations. - Scopes - Class in com.softwaremill.jox.structured
- Scopes() - Constructor for class com.softwaremill.jox.structured.Scopes
- supervised(Scoped<T>) - Static method in class com.softwaremill.jox.structured.Scopes
-
Starts a new concurrency scope, which allows starting forks in the given code block
f
.
T
- timeout(long, Callable<T>) - Static method in class com.softwaremill.jox.structured.Race
U
- uninterruptible(Callable<T>) - Static method in class com.softwaremill.jox.structured.Util
-
Prevent
f
from being interrupted. - unsupervised(ScopedUnsupervised<T>) - Static method in class com.softwaremill.jox.structured.Scopes
-
Starts a new concurrency scope, which allows starting forks in the given code block
f
. - UnsupervisedScope - Class in com.softwaremill.jox.structured
-
Capability granted by an
unsupervised(ScopedUnsupervised)
concurrency scope (as well as, via subtyping, bysupervised(Scoped)
). - UnsupervisedScope() - Constructor for class com.softwaremill.jox.structured.UnsupervisedScope
- Util - Class in com.softwaremill.jox.structured
- Util() - Constructor for class com.softwaremill.jox.structured.Util
All Classes and Interfaces|All Packages