Commit 6977b52
committed
ThreadService: add API for backing ExecutorService
For some uses cases (particularly for certain calls to ImgLib2
functionality), it is helpful to have access to the ExecutorService
being used internally by the ThreadService. And while we're at it,
we may as well make the ExecutorService itself configurable.
I have a vague intuition that ExecutorService is probably not applicable
to all threading models of all possible sorts of Java runtimes, so I
include a caveat in the javadoc that the accessor is allowed to return
null, and the mutator is allowed to throw UnsupportedOperationException,
if the ThreadService implementation does not use an ExecutorService.1 parent 6dbec39 commit 6977b52
File tree
2 files changed
+29
-0
lines changed- src/main/java/org/scijava/thread
2 files changed
+29
-0
lines changedLines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
86 | 96 | | |
87 | 97 | | |
88 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
94 | 113 | | |
95 | 114 | | |
96 | 115 | | |
| |||
0 commit comments