| Package | Description |
|---|---|
| com.phloc.commons.callback | |
| com.phloc.commons.concurrent.collector |
| Modifier and Type | Interface and Description |
|---|---|
interface |
INonThrowingRunnableWithParameter<PARAMTYPE>
Simple callback interface to allow generic iteration with a typed callback
function.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AdapterRunnableToRunnableWithParameter<PARAMTYPE>
A helper class that converts a
Runnable into an
IThrowingRunnableWithParameter. |
| Modifier and Type | Method and Description |
|---|---|
static <PARAMTYPE> |
AdapterThrowingRunnableToCallableWithParameter.createAdapter(IThrowingRunnableWithParameter<PARAMTYPE> aRunnable)
Create a callable that always returns
null. |
static <DATATYPE,PARAMTYPE> |
AdapterThrowingRunnableToCallableWithParameter.createAdapter(IThrowingRunnableWithParameter<PARAMTYPE> aRunnable,
DATATYPE aResult)
Create a callable that always returns the passed value.
|
| Constructor and Description |
|---|
AdapterThrowingRunnableToCallableWithParameter(IThrowingRunnableWithParameter<PARAMTYPE> aRunnable) |
AdapterThrowingRunnableToCallableWithParameter(IThrowingRunnableWithParameter<PARAMTYPE> aRunnable,
DATATYPE aResult) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ConcurrentCollectorSingle.setPerformer(IThrowingRunnableWithParameter<DATATYPE> aPerformer) |
protected void |
ConcurrentCollectorMultiple.setPerformer(IThrowingRunnableWithParameter<List<DATATYPE>> aPerformer) |
| Constructor and Description |
|---|
ConcurrentCollectorMultiple(int nMaxQueueSize,
int nMaxPerformCount,
IThrowingRunnableWithParameter<List<DATATYPE>> aPerformer)
Constructor.
|
ConcurrentCollectorMultiple(IThrowingRunnableWithParameter<List<DATATYPE>> aPerformer)
Constructor that uses
AbstractConcurrentCollector.DEFAULT_MAX_QUEUE_SIZE elements as the
maximum queue length and ConcurrentCollectorMultiple.DEFAULT_MAX_PERFORM_COUNT as the max
perform count. |
ConcurrentCollectorSingle(int nMaxQueueSize,
IThrowingRunnableWithParameter<DATATYPE> aPerformer)
Constructor.
|
ConcurrentCollectorSingle(IThrowingRunnableWithParameter<DATATYPE> aPerformer)
Constructor that uses
AbstractConcurrentCollector.DEFAULT_MAX_QUEUE_SIZE elements as the
maximum queue length. |
Copyright © 2006–2014 phloc systems. All rights reserved.