Class EventSourcingRepository
- java.lang.Object
-
- io.fluxcapacitor.javaclient.persisting.eventsourcing.EventSourcingRepository
-
- All Implemented Interfaces:
AggregateRepository
public class EventSourcingRepository extends Object implements AggregateRepository
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classEventSourcingRepository.EventSourcedAggregate<T>
-
Constructor Summary
Constructors Constructor Description EventSourcingRepository(EventStore eventStore, SnapshotRepository snapshotRepository, Cache cache, EventStoreSerializer serializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancachingAllowed(Class<?> aggregateType)protected <T> EventSourcingRepository.EventSourcedAggregate<T>createAggregate(Class<T> aggregateType, String aggregateId)protected Stringdomain(Class<?> aggregateType)protected booleanisCached(Class<?> aggregateType)<T> Aggregate<T>load(String aggregateId, Class<T> aggregateType, boolean onlyCached)protected SnapshotRepositorysnapshotRepository(Class<?> aggregateType)protected SnapshotTriggersnapshotTrigger(Class<?> aggregateType)booleansupports(Class<?> aggregateType)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fluxcapacitor.javaclient.modeling.AggregateRepository
load
-
-
-
-
Constructor Detail
-
EventSourcingRepository
public EventSourcingRepository(EventStore eventStore, SnapshotRepository snapshotRepository, Cache cache, EventStoreSerializer serializer)
-
-
Method Detail
-
supports
public boolean supports(Class<?> aggregateType)
- Specified by:
supportsin interfaceAggregateRepository
-
cachingAllowed
public boolean cachingAllowed(Class<?> aggregateType)
- Specified by:
cachingAllowedin interfaceAggregateRepository
-
load
public <T> Aggregate<T> load(String aggregateId, Class<T> aggregateType, boolean onlyCached)
- Specified by:
loadin interfaceAggregateRepository
-
createAggregate
protected <T> EventSourcingRepository.EventSourcedAggregate<T> createAggregate(Class<T> aggregateType, String aggregateId)
-
snapshotRepository
protected SnapshotRepository snapshotRepository(Class<?> aggregateType)
-
snapshotTrigger
protected SnapshotTrigger snapshotTrigger(Class<?> aggregateType)
-
isCached
protected boolean isCached(Class<?> aggregateType)
-
-