Package io.github.javactrl.kafka
Class Scheduler
java.lang.Object
io.github.javactrl.kafka.Scheduler
Demo-only, not for production time scheduler. Write a record with a
string key "{first part}|{second part}" and a delay value number (as a string).
It will post a record with key "{first part}" and value
"{second part}" after the original record timestamp plus the received
delay.
If the delay value is "0" the corresponding job will be canceled.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classApach Kafka Streams Processor implementing the workflow run implementation -
Method Summary
-
Method Details
-
sleep
public static void sleep(long duration, TimeUnit durationUnits) throws io.github.javactrl.rt.CThrowable Suspends the current thread execution for the specified amount of time.- Parameters:
duration- duration's valuedurationUnits- duration's unit- Throws:
io.github.javactrl.rt.CThrowable- always throws, since this always suspends
-
main
Command line entry point Expects bootstrap servers address or it's "localhost:9092" if not specified.- Parameters:
args- command line arguments
-