org.axonframework.saga.annotation
Class AsyncSagaEventProcessor

java.lang.Object
  extended by org.axonframework.saga.annotation.AsyncSagaEventProcessor
All Implemented Interfaces:
com.lmax.disruptor.EventHandler<AsyncSagaProcessingEvent>

public final class AsyncSagaEventProcessor
extends Object
implements com.lmax.disruptor.EventHandler<AsyncSagaProcessingEvent>

Processes events by forwarding it to Saga instances "owned" by each processor. This processor uses a consistent hashing algorithm to assign the owner of each Saga.

Since:
2.0
Author:
Allard Buijze

Method Summary
 void onEvent(AsyncSagaProcessingEvent entry, long sequence, boolean endOfBatch)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

onEvent

public void onEvent(AsyncSagaProcessingEvent entry,
                    long sequence,
                    boolean endOfBatch)
             throws Exception
Specified by:
onEvent in interface com.lmax.disruptor.EventHandler<AsyncSagaProcessingEvent>
Throws:
Exception


Copyright © 2010-2012. All Rights Reserved.