org.qi4j.library.eventsourcing.application.source.helper
Class ApplicationTransactionTracker<ReceiverThrowableType extends Throwable>

java.lang.Object
  extended by org.qi4j.library.eventsourcing.application.source.helper.ApplicationTransactionTracker<ReceiverThrowableType>

public class ApplicationTransactionTracker<ReceiverThrowableType extends Throwable>
extends Object

Helper that enables a service to easily track transactions. Upon startup the tracker will get all the transactions from the store since the last check, and delegate them to the given Output. It will also register itself with the store so that it can get continuous updates.

Then, as transactions come in from the store, they will be processed in real-time. If a transaction is successfully handled the configuration of the service, which must extend DomainEventTrackerConfiguration, will update the marker for the last successfully handled transaction.


Constructor Summary
ApplicationTransactionTracker(ApplicationEventStream stream, ApplicationEventSource source, Configuration<? extends DomainEventTrackerConfiguration> configuration, Output<TransactionApplicationEvents,ReceiverThrowableType> output)
           
 
Method Summary
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationTransactionTracker

public ApplicationTransactionTracker(ApplicationEventStream stream,
                                     ApplicationEventSource source,
                                     Configuration<? extends DomainEventTrackerConfiguration> configuration,
                                     Output<TransactionApplicationEvents,ReceiverThrowableType> output)
Method Detail

start

public void start()

stop

public void stop()