org.axonframework.eventsourcing
Interface Snapshotter

All Known Implementing Classes:
AbstractSnapshotter, AggregateSnapshotter, GaeSnapshotter, SpringAggregateSnapshotter

public interface Snapshotter

Interface describing instances that are capable of creating snapshot events for aggregates. Although snapshotting is typically an asynchronous process, implementations may to choose to create snapshots in the calling thread.

Since:
0.6
Author:
Allard Buijze

Method Summary
 void scheduleSnapshot(String typeIdentifier, Object aggregateIdentifier)
          Schedules snapshot taking for an aggregate with given typeIdentifier and aggregateIdentifier.
 

Method Detail

scheduleSnapshot

void scheduleSnapshot(String typeIdentifier,
                      Object aggregateIdentifier)
Schedules snapshot taking for an aggregate with given typeIdentifier and aggregateIdentifier. The implementation may choose to process this call synchronously (i.e. in the caller's thread), asynchronously, or ignore the call altogether.

Parameters:
typeIdentifier - the type of the aggregate to take the snapshot for
aggregateIdentifier - The identifier of the aggregate to take the snapshot for


Copyright © 2010-2016. All Rights Reserved.