Class SpringPulsarBinderSampleApp
java.lang.Object
org.springframework.pulsar.sample.binder.SpringPulsarBinderSampleApp
This sample binder app has an extra consumer that is equipped with Pulsar's DLT feature
- timeLoggerToDlt. However, this consumer is not part of the
spring.cloud.function.definition. In order to enable this, add the function
timeLoggerToDlt to the definition in the application.yml file. When doing this, in
order to minimize verbose output and just to focus on the DLT feature, comment out the
regular supplier below (timeSupplier) and then un-comment the ApplicationRunner below.
The runner only sends a single message whereas the supplier sends a message every
second.
- Author:
- Soby Chacko
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Consumer<org.springframework.pulsar.sample.binder.SpringPulsarBinderSampleApp.EnhancedTime>
Consumer<org.springframework.pulsar.sample.binder.SpringPulsarBinderSampleApp.EnhancedTime>
Function<org.springframework.pulsar.sample.binder.SpringPulsarBinderSampleApp.Time,
org.springframework.pulsar.sample.binder.SpringPulsarBinderSampleApp.EnhancedTime> Supplier<org.springframework.pulsar.sample.binder.SpringPulsarBinderSampleApp.Time>
-
Constructor Details
-
SpringPulsarBinderSampleApp
public SpringPulsarBinderSampleApp()
-
-
Method Details
-
main
-
timeSupplier
-
timeProcessor
-
timeLogger
-
timeLoggerToDlt
-