| Modifier and Type | Interface and Description |
|---|---|
interface |
INonThrowingRunnable
A simple interface that looks like
Runnable but follows our
naming conventions. |
| Modifier and Type | Class and Description |
|---|---|
class |
AdapterRunnableToThrowingRunnable<EXTYPE extends Throwable>
A helper class that converts a
Runnable into an
IThrowingRunnable. |
| Modifier and Type | Method and Description |
|---|---|
IThrowingRunnable<EXTYPE> |
AdapterThrowingRunnableToCallable.getRunnable() |
| Modifier and Type | Method and Description |
|---|---|
static <EXTYPE extends Exception> |
AdapterThrowingRunnableToCallable.createAdapter(IThrowingRunnable<EXTYPE> aRunnable)
Create a callable that always returns
null. |
static <DATATYPE,EXTYPE extends Exception> |
AdapterThrowingRunnableToCallable.createAdapter(IThrowingRunnable<EXTYPE> aRunnable,
DATATYPE aResult)
Create a callable that always returns the passed value.
|
| Constructor and Description |
|---|
AdapterThrowingRunnableToCallable(IThrowingRunnable<EXTYPE> aRunnable) |
AdapterThrowingRunnableToCallable(IThrowingRunnable<EXTYPE> aRunnable,
DATATYPE aResult) |
| Modifier and Type | Method and Description |
|---|---|
<EXTYPE extends Exception> |
SimpleLock.lockedThrowing(IThrowingRunnable<EXTYPE> aRunnable)
Execute the provided runnable in a read lock.
|
<EXTYPE extends Exception> |
SimpleReadWriteLock.readLockedThrowing(IThrowingRunnable<EXTYPE> aRunnable)
Execute the provided runnable in a read lock.
|
<EXTYPE extends Exception> |
SimpleReadWriteLock.writeLockedThrowing(IThrowingRunnable<EXTYPE> aRunnable)
Execute the provided runnable in a write lock.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractConcurrentCollector<DATATYPE>
Abstract concurrent collector based on
BlockingQueue. |
class |
ConcurrentCollectorMultiple<DATATYPE>
Concurrent collector that performs action on multiple objects at once
|
class |
ConcurrentCollectorSingle<DATATYPE>
Concurrent collector that performs action on each object separately
|
| Modifier and Type | Method and Description |
|---|---|
static void |
CommonsTestHelper.testInParallel(int nCalls,
IThrowingRunnable<? extends Throwable> aRunnable)
Run something in parallel
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractScopeAwareRunnable
Abstract implementation of
Runnable that handles WebScopes correctly. |
Copyright © 2014–2016 Philip Helger. All rights reserved.