public abstract class ConcurrentMapEventStore extends InstanceEventPublisher implements InstanceEventStore
| Modifier | Constructor and Description |
|---|---|
protected |
ConcurrentMapEventStore(int maxLogSizePerAggregate,
ConcurrentMap<InstanceId,List<InstanceEvent>> eventLog) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
append(List<InstanceEvent> events) |
protected boolean |
doAppend(List<InstanceEvent> events) |
reactor.core.publisher.Flux<InstanceEvent> |
find(InstanceId id) |
reactor.core.publisher.Flux<InstanceEvent> |
findAll() |
protected static long |
getLastVersion(List<InstanceEvent> events) |
publish, subscribeprotected ConcurrentMapEventStore(int maxLogSizePerAggregate,
ConcurrentMap<InstanceId,List<InstanceEvent>> eventLog)
public reactor.core.publisher.Flux<InstanceEvent> findAll()
findAll in interface InstanceEventStorepublic reactor.core.publisher.Flux<InstanceEvent> find(InstanceId id)
find in interface InstanceEventStorepublic reactor.core.publisher.Mono<Void> append(List<InstanceEvent> events)
append in interface InstanceEventStoreprotected boolean doAppend(List<InstanceEvent> events)
protected static long getLastVersion(List<InstanceEvent> events)
Copyright © 2019 codecentric AG. All rights reserved.