void close()
Processor Contract — Stream Processing Node
Processor is the main abstraction of the Low-Level Processor API for record stream processors (aka stream processing nodes) that can process one record at a time.
Processor can be added to a Topology using Topology.addProcessor operator (via ProcessorSupplier).
|
Note
|
Streams DSL — High-Level Stream Processing DSL comes with the KStream.process operator to add a custom Processor to a topology (via ProcessorSupplier).
|
The lifecycle of a Processor is fully controlled by a corresponding ProcessorNode.
| Method | Description |
|---|---|
|
|
|
Initializes the processor with a ProcessorContext (that can be used to decide whether a record should be forwarded downstream to child processors if there are any) Used exclusively when |
|
Processes a single record (as a pair of a Used exclusively when |
|
Tip
|
Use AbstractProcessor when you want to develop a custom Processor.
|
| Processor | Description |
|---|---|
Abstract processor that manages a ProcessorContext instance and provides a no-op close implementation |
|