|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AsyncReadConfigurer
A ReadConfigurer
which does asynchronous execution. All work will be done on background
Thread
s using the jadice TaskExecutor
API.
IMPORTANT: This interface is used as a public part of the fluent read API. It is not designed to be implemented and must not be implemented by clients.
Method Summary | |
---|---|
Task<List<Document>> |
asTask()
Construct a Task of this read configuration . |
void |
execute()
Execute this read configuration . |
void |
execute(TaskExecutor<List<Document>> taskExecutor)
Execute this read configuration on the given TaskExecutor . |
Methods inherited from interface com.levigo.jadice.document.read.fluent.ReadConfigurer |
---|
add, defaultControls, defaultLayerMapping, defaultLayerMapping, getFirstDocument, getRegisteredDocuments, into, newDocument, newDocument, skip, task, task |
Method Detail |
---|
Task<List<Document>> asTask()
Task
of this read configuration
. The
Task
returned may be used to be executed on a TaskExecutor
Task
instance containing all instructions to perform the reading of the
configured documents and all parts.void execute(TaskExecutor<List<Document>> taskExecutor)
read configuration
on the given TaskExecutor
.
taskExecutor
-
IllegalArgumentException
- if taskExecutor is nullvoid execute()
read configuration
. This method is basically same as
execute(TaskExecutor)
but uses an anonymous internal TaskExecutor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |