org.axonframework.gae.eventstore
Class GaeSnapshotter
java.lang.Object
org.axonframework.gae.eventstore.GaeSnapshotter
- All Implemented Interfaces:
- Snapshotter, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
public class GaeSnapshotter
- extends Object
- implements Snapshotter, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
- Author:
- Jettro Coenradie
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GaeSnapshotter
@Autowired
public GaeSnapshotter(SnapshotEventStore eventStore)
scheduleSnapshot
public void scheduleSnapshot(String typeIdentifier,
Object aggregateIdentifier)
- Description copied from interface:
Snapshotter
- 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.
- Specified by:
scheduleSnapshot
in interface Snapshotter
- Parameters:
typeIdentifier
- the type of the aggregate to take the snapshot foraggregateIdentifier
- The identifier of the aggregate to take the snapshot for
createSnapshot
public void createSnapshot(String typeIdentifier,
String aggregateIdentifier)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
Copyright © 2010-2016. All Rights Reserved.