public class GaeSnapshotter extends Object implements Snapshotter, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
GaeSnapshotter(SnapshotEventStore eventStore) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
createSnapshot(String typeIdentifier,
String aggregateIdentifier) |
void |
scheduleSnapshot(String typeIdentifier,
Object aggregateIdentifier)
Schedules snapshot taking for an aggregate with given
typeIdentifier and
aggregateIdentifier. |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
@Autowired public GaeSnapshotter(SnapshotEventStore eventStore)
public void scheduleSnapshot(String typeIdentifier, Object aggregateIdentifier)
SnapshottertypeIdentifier and
aggregateIdentifier. The implementation may choose to process this call synchronously (i.e. in the
caller's thread), asynchronously, or ignore the call altogether.scheduleSnapshot in interface SnapshottertypeIdentifier - the type of the aggregate to take the snapshot foraggregateIdentifier - The identifier of the aggregate to take the snapshot forpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2010-2014. All Rights Reserved.