public static void main(String[] args) {
    CommandLine cmdLine = new CommandLine();
    Config config = cmdLine.loadConfig(cmdLine.parser().parse(args));
    ApplicationRunner runner = ApplicationRunners.getApplicationRunner(new KeyValueStoreExample(), config);

    runner.run();
    runner.waitForFinish();
  }
Example code using {@link KeyValueStore} to implement event-time window
samza-test/src/main/java/org/apache/samza/example/KeyValueStoreExample.java