public interface KafkaStreamsProcessor
KStream input and output.
This interface can be used as a bindable interface with EnableBinding
when both input and output types are single KStream. In other scenarios where multiple types are required, other
similar bindable interfaces can be created and used. For example, there are cases in which multiple KStreams
are required on the outbound in the case of KStream branching or multiple input types are required either in the
form of multiple KStreams and a combination of KStreams and KTables. In those cases, new bindable interfaces compatible
with the requirements must be created. Here are some examples.
interface KStreamBranchProcessor {
@Input("input")
KStream<?, ?> input();
@Output("output-1")
KStream<?, ?> output1();
@Output("output-2")
KStream<?, ?> output2();
@Output("output-3")
KStream<?, ?> output3();
......
}
interface KStreamKtableProcessor {
@Input("input-1")
KStream<?, ?> input1();
@Input("input-2")
KTable<?, ?> input2();
@Output("output")
KStream<?, ?> output();
......
}
| Modifier and Type | Method and Description |
|---|---|
org.apache.kafka.streams.kstream.KStream<?,?> |
input()
Input binding.
|
org.apache.kafka.streams.kstream.KStream<?,?> |
output()
Output binding.
|
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.