AGGREGATE - Type of the aggregate.public interface AggregateCache<AGGREGATE>
| Modifier and Type | Method and Description |
|---|---|
AGGREGATE |
get(@NotNull AggregateRootId aggregateId,
java.lang.Integer version)
Tries to read the aggregate with the given identifier from the cache.
|
void |
put(@NotNull AggregateRootId aggregateId,
AGGREGATE aggregate)
Puts an aggregate with the given identifier in the cache.
|
void |
remove(@NotNull AggregateRootId aggregateId)
Removes the aggregate with the given identifier from the cache.
|
AGGREGATE get(@NotNull @NotNull AggregateRootId aggregateId, java.lang.Integer version)
aggregateId - Aggregate to load.version - Version to load or null for latest.null if it was not found in the cache.void put(@NotNull
@NotNull AggregateRootId aggregateId,
@NotNull
AGGREGATE aggregate)
aggregateId - Aggregate to load.aggregate - Aggregate to cache.void remove(@NotNull
@NotNull AggregateRootId aggregateId)
aggregateId - Aggregate to remove from cache.Copyright © 2019 fuin.org (Germany). All Rights Reserved.