Package org.axonframework.eventhandling.scheduling

Examples of org.axonframework.eventhandling.scheduling.StartingEvent


        final String someAssociationValue = "value";
        new TransactionTemplate(transactionManager)
                .execute(new TransactionCallbackWithoutResult() {
                    @Override
                    public void doInTransactionWithoutResult(TransactionStatus status) {
                        eventBus.publish(new GenericEventMessage<StartingEvent>(new StartingEvent(someAssociationValue)));
                    }
                });
        // the event is scheduled in 50ms, which is generally enough to get the saga committed
        Thread.sleep(150);
        Set<String> actualResult = repository.find(SimpleTimingSaga.class,
View Full Code Here


        new TransactionTemplate(transactionManager)
                .execute(new TransactionCallbackWithoutResult() {
                    @Override
                    public void doInTransactionWithoutResult(TransactionStatus status) {
                        eventBus.publish(new GenericEventMessage<StartingEvent>(new StartingEvent(randomAssociationValue)));
                        Set<String> actualResult =
                                repository.find(SimpleTimingSaga.class,
                                                new AssociationValue("association", randomAssociationValue));
                        assertEquals(1, actualResult.size());
                    }
View Full Code Here

TOP

Related Classes of org.axonframework.eventhandling.scheduling.StartingEvent

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.