Package org.axonframework.eventhandling.replay

Examples of org.axonframework.eventhandling.replay.BackloggingIncomingMessageHandler


        // the 0 means we do not need any "intermediate commit" during the replay.
        // The BackloggingIncomingMessageHandler will make sure any events published while replaying are backlogged
        // and postponed until the replay is done.
        ReplayingCluster replayingCluster = new ReplayingCluster(new SimpleCluster("simple"), eventStore,
                                                                 new NoTransactionManager(), 0,
                                                                 new BackloggingIncomingMessageHandler());

        // we initialize an event bus that contains our replaying cluster
        EventBus eventBus = new ClusteringEventBus(new DefaultClusterSelector(replayingCluster));

        // we subscribe our two listeners to the Event Bus
View Full Code Here


        @Override
        public void afterPropertiesSet() throws Exception {
            if ("discard".equals(policy)) {
                messageHandler = new DiscardingIncomingMessageHandler();
            } else {
                messageHandler = new BackloggingIncomingMessageHandler();
            }
        }
View Full Code Here

TOP

Related Classes of org.axonframework.eventhandling.replay.BackloggingIncomingMessageHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.