Class TestProcessor

  • All Implemented Interfaces:
    Processor

    public class TestProcessor
    extends java.lang.Object
    implements Processor
    Processor used for testing, keeps track of how many times it is invoked and accepts a Consumer of IngestDocument to be called when executed.
    • Constructor Detail

      • TestProcessor

        public TestProcessor​(java.util.function.Consumer<IngestDocument> ingestDocumentConsumer)
      • TestProcessor

        public TestProcessor​(java.lang.String tag,
                             java.lang.String type,
                             java.util.function.Consumer<IngestDocument> ingestDocumentConsumer)
    • Method Detail

      • getType

        public java.lang.String getType()
        Specified by:
        getType in interface Processor
      • getTag

        public java.lang.String getTag()
        Specified by:
        getTag in interface Processor
      • getInvokedCounter

        public int getInvokedCounter()