-
- All Implemented Interfaces:
public interface Repository
-
-
Method Summary
Modifier and Type Method Description abstract <T extends AggregateRoot> CompletableFuture<T>getAsync(Class<T> aggregateRootType, Object aggregateRootId)Get an aggregate from memory cache, if not exist, get it from event store. abstract CompletableFuture<AggregateRoot>getAsync(Object aggregateRootId)Get an aggregate from memory cache, if not exist, get it from event store. abstract <T extends AggregateRoot> voidrefreshAggregate(T aggregateRoot)Refresh memory cache with given aggregate. -
-
Method Detail
-
getAsync
abstract <T extends AggregateRoot> CompletableFuture<T> getAsync(Class<T> aggregateRootType, Object aggregateRootId)
Get an aggregate from memory cache, if not exist, get it from event store.
-
getAsync
abstract CompletableFuture<AggregateRoot> getAsync(Object aggregateRootId)
Get an aggregate from memory cache, if not exist, get it from event store.
-
refreshAggregate
abstract <T extends AggregateRoot> void refreshAggregate(T aggregateRoot)
Refresh memory cache with given aggregate.
-
-
-
-