Examples of EventScheduler


Examples of org.axonframework.eventhandling.scheduling.EventScheduler

                    }
                });

        // The Saga will schedule some deadlines in our sample
        final ScheduledExecutorService executorService = newSingleThreadScheduledExecutor();
        EventScheduler eventScheduler = new SimpleEventScheduler(executorService, eventBus);

        // we need to store a Saga somewhere. Let's do that in memory for now
        InMemorySagaRepository sagaRepository = new InMemorySagaRepository();

        // we want to inject resources in our Saga, so we need to tweak the GenericSagaFactory
View Full Code Here

Examples of se.grunka.fortuna.accumulator.EventScheduler

    }

    @Test
    public void shouldUseTimeBetweenCallsToCreateEvents() throws Exception {
        target.event(
                new EventScheduler() {
                    @Override
                    public void schedule(long delay, TimeUnit timeUnit) {
                        assertEquals(10, timeUnit.toMillis(delay));
                        schedules++;
                    }
View Full Code Here

Examples of se.grunka.fortuna.accumulator.EventScheduler

    }

    @Test
    public void shouldGetGarbageCollectionData() throws Exception {
        target.event(
                new EventScheduler() {
                    @Override
                    public void schedule(long delay, TimeUnit timeUnit) {
                        assertEquals(TimeUnit.SECONDS.toMillis(10), timeUnit.toMillis(delay));
                        schedules++;
                    }
View Full Code Here

Examples of se.grunka.fortuna.accumulator.EventScheduler

    }

    @Test
    public void shouldAddUptime() throws Exception {
        target.event(
                new EventScheduler() {
                    @Override
                    public void schedule(long delay, TimeUnit timeUnit) {
                        assertEquals(100, timeUnit.toMillis(delay));
                        schedules++;
                    }
View Full Code Here

Examples of se.grunka.fortuna.accumulator.EventScheduler

    }

    @Test
    public void shouldAddBytes() throws Exception {
        target.event(
                new EventScheduler() {
                    @Override
                    public void schedule(long delay, TimeUnit timeUnit) {
                        assertEquals(100, timeUnit.toMillis(delay));
                        schedules++;
                    }
View Full Code Here

Examples of se.grunka.fortuna.accumulator.EventScheduler

    }

    @Test
    public void shouldAddUptime() throws Exception {
        target.event(
                new EventScheduler() {
                    @Override
                    public void schedule(long delay, TimeUnit timeUnit) {
                        assertEquals(1000, timeUnit.toMillis(delay));
                        schedules++;
                    }
View Full Code Here

Examples of se.grunka.fortuna.accumulator.EventScheduler

    }

    @Test
    public void shouldAddTwoBytesAndSchedule() throws Exception {
        target.event(
                new EventScheduler() {
                    @Override
                    public void schedule(long delay, TimeUnit timeUnit) {
                        assertEquals(1000, timeUnit.toMillis(delay));
                        schedules++;
                    }
View Full Code Here

Examples of se.grunka.fortuna.accumulator.EventScheduler

    }

    @Test
    public void shouldReadFreeMemory() throws Exception {
        target.event(
                new EventScheduler() {
                    @Override
                    public void schedule(long delay, TimeUnit timeUnit) {
                        assertEquals(100, timeUnit.toMillis(delay));
                        schedules++;
                    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.