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)
Snapshotter
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.scheduleSnapshot
in interface Snapshotter
typeIdentifier
- 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.InitializingBean
Exception
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
Copyright © 2010-2014. All Rights Reserved.