org.axonframework.eventstore.management
Interface EventStoreManagement

All Known Implementing Classes:
JdbcEventStore, JpaEventStore, MongoEventStore, MongoEventStore, RunEventReplay.StubEventStore, SequenceEventStore, TimestampCutoffReadonlyEventStore, VolatileEventStore

public interface EventStoreManagement

Interface describing operations useful for management purposes. These operations are typically used in migration scripts when deploying new versions of applications.

Since:
0.6
Author:
Allard Buijze

Method Summary
 CriteriaBuilder newCriteriaBuilder()
          Returns a CriteriaBuilder that allows the construction of criteria for this EventStore implementation
 void visitEvents(Criteria criteria, EventVisitor visitor)
          Loads all events available in the event store that match the given criteria and calls EventVisitor.doWithEvent(org.axonframework.domain.DomainEventMessage) for each event found.
 void visitEvents(EventVisitor visitor)
          Loads all events available in the event store and calls EventVisitor.doWithEvent(org.axonframework.domain.DomainEventMessage) for each event found.
 

Method Detail

visitEvents

void visitEvents(EventVisitor visitor)
Loads all events available in the event store and calls EventVisitor.doWithEvent(org.axonframework.domain.DomainEventMessage) for each event found. Events of a single aggregate are guaranteed to be ordered by their sequence number.

Implementations are encouraged, though not required, to supply events in the absolute chronological order.

Processing stops when the visitor throws an exception.

Parameters:
visitor - The visitor the receives each loaded event

visitEvents

void visitEvents(Criteria criteria,
                 EventVisitor visitor)
Loads all events available in the event store that match the given criteria and calls EventVisitor.doWithEvent(org.axonframework.domain.DomainEventMessage) for each event found. Events of a single aggregate are guaranteed to be ordered by their sequence number.

Implementations are encouraged, though not required, to supply events in the absolute chronological order.

Processing stops when the visitor throws an exception.

Parameters:
criteria - The criteria describing the events to select
visitor - The visitor the receives each loaded event
See Also:
newCriteriaBuilder()

newCriteriaBuilder

CriteriaBuilder newCriteriaBuilder()
Returns a CriteriaBuilder that allows the construction of criteria for this EventStore implementation

Returns:
a builder to create Criteria for this Event Store.
See Also:
visitEvents(Criteria, org.axonframework.eventstore.EventVisitor)


Copyright © 2010-2016. All Rights Reserved.