michalcukierman commented on issue #21104:
URL: https://github.com/apache/pulsar/issues/21104#issuecomment-2142749993
This code creates a pipeline with the source-processor-sink. Sink ACK
triggers source ACK.
```
@ApplicationScoped
public class Processor {
private final AtomicLong inCount = new AtomicLong(0);
@Incoming("requests-in")
@Outgoing("dump-out")
@Blocking
PulsarOutgoingMessage<String> process(PulsarIncomingMessage<String> in) {
System.out.println(" - Processed: " + inCount.incrementAndGet());
return PulsarOutgoingMessage.from(in);
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]