Class CachingAggregateRepository
java.lang.Object
io.fluxcapacitor.javaclient.persisting.repository.CachingAggregateRepository
- All Implemented Interfaces:
AggregateRepository
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyEvents(String aggregateId, Object... events) booleancachingAllowed(Class<?> aggregateType) protected voidgetAggregatesFor(String entityId) protected voidhandleEvents(List<SerializedMessage> messages) <T> AggregateRoot<T><T> AggregateRoot<T>protected voidprotected voidupdateRelationships(ImmutableAggregateRoot<?> before, ImmutableAggregateRoot<?> after)
-
Field Details
-
slowTrackingThreshold
-
-
Constructor Details
-
CachingAggregateRepository
public CachingAggregateRepository()
-
-
Method Details
-
load
- Specified by:
loadin interfaceAggregateRepository
-
loadFor
- Specified by:
loadForin interfaceAggregateRepository
-
getAggregatesFor
- Specified by:
getAggregatesForin interfaceAggregateRepository
-
applyEvents
- Specified by:
applyEventsin interfaceAggregateRepository
-
handleEvents
-
updateRelationships
protected void updateRelationships(ImmutableAggregateRoot<?> before, ImmutableAggregateRoot<?> after) -
catchUpIfNeeded
protected void catchUpIfNeeded() -
startTrackerIfNeeded
protected void startTrackerIfNeeded() -
cachingAllowed
- Specified by:
cachingAllowedin interfaceAggregateRepository
-