public class TestProcessor extends java.lang.Object implements Processor
Consumer
of IngestDocument
to be called when executed.Modifier and Type | Class and Description |
---|---|
static class |
TestProcessor.Factory |
Processor.Parameters
Constructor and Description |
---|
TestProcessor(java.util.function.Consumer<IngestDocument> ingestDocumentConsumer) |
TestProcessor(java.lang.String tag,
java.lang.String type,
java.util.function.Consumer<IngestDocument> ingestDocumentConsumer) |
Modifier and Type | Method and Description |
---|---|
void |
execute(IngestDocument ingestDocument) |
int |
getInvokedCounter() |
java.lang.String |
getTag() |
java.lang.String |
getType() |
public TestProcessor(java.util.function.Consumer<IngestDocument> ingestDocumentConsumer)
public TestProcessor(java.lang.String tag, java.lang.String type, java.util.function.Consumer<IngestDocument> ingestDocumentConsumer)
public void execute(IngestDocument ingestDocument) throws java.lang.Exception
public int getInvokedCounter()