public interface ImportRequestor
Modifier and Type | Method and Description |
---|---|
default ImportId |
enqueue(ImportInput request)
Adds the import request to the queue and returns immediately.
|
ImportBatch |
enqueue(java.util.stream.Stream<ImportInput> requests)
Adds the import requests to the queue and returns immediately.
|
default ImportId enqueue(ImportInput request)
QueuedImport
.request
- details what to import.java.lang.NullPointerException
- if the argument is null
.ImportBatch enqueue(java.util.stream.Stream<ImportInput> requests)
QueuedImport
for
each import request.requests
- detail what to import.QueuedImport
s, each having its
own ImportId
through which you can get hold of the corresponding
import run, for example to get some feedback on progress.java.lang.NullPointerException
- if the stream or any of its elements is
null
.java.lang.IllegalArgumentException
- if the stream is empty.