Package io.github.javactrl.kafka
Class WorkflowProcessor
java.lang.Object
io.github.javactrl.kafka.WorkflowProcessor
- All Implemented Interfaces:
org.apache.kafka.streams.processor.api.Processor<String,String, String, String>
public class WorkflowProcessor
extends Object
implements org.apache.kafka.streams.processor.api.Processor<String,String,String,String>
This is the implementation of Apache Kafka Streams
org.apache.kafka.streams.processor.api.Processor
This Processor expects a single source with its key and value strings.
And key-value store (which is called "store") for storing the workflow's
state. It's recommended to use WorkflowProcessorSupplier,
which already adds a store. The store must have string keys and byte[]
values.
Each sink to which the workflow writes must be added as a sink to this Processor.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA prefix for messages on resumption thread which starts a new worklow -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.kafka.streams.processor.api.Processor
close
-
Field Details
-
NEW_THREAD_PREFIX
A prefix for messages on resumption thread which starts a new worklow- See Also:
-
-
Constructor Details
-
WorkflowProcessor
Constructor- Parameters:
workflow- the workflow function to run on this Processor
-
-
Method Details