use of org.apache.kafka.streams.processor.internals.ProcessorNode in project kafka by apache.
the class MockProcessorContext method forward.
@Override
@SuppressWarnings("unchecked")
public <K, V> void forward(K key, V value, int childIndex) {
ProcessorNode thisNode = currentNode;
ProcessorNode childNode = (ProcessorNode<K, V>) thisNode.children().get(childIndex);
currentNode = childNode;
try {
childNode.process(key, value);
} finally {
currentNode = thisNode;
}
}
Aggregations