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