public static void main(String[] args) throws InterruptedException {
// we'll store Events on the FileSystem, in the "events" folder
EventStore eventStore = new FileSystemEventStore(new SimpleEventFileResolver(new File("./events")));
// a Simple Event Bus will do
EventBus eventBus = new SimpleEventBus();
// we register the event handlers
AnnotationEventListenerAdapter.subscribe(new ToDoEventHandler(), eventBus);
// we use default settings for the disruptor command bus