public class DefaultEventSourcing extends Object implements EventSourcing, HandlerInterceptor
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DefaultEventSourcing.EventSourcedModel<T> |
HandlerInterceptor.InterceptedHandler| Constructor and Description |
|---|
DefaultEventSourcing() |
| Modifier and Type | Method and Description |
|---|---|
protected Cache |
cache(Class<?> modelType) |
protected <T> DefaultEventSourcing.EventSourcedModel<T> |
createEsModel(Class<T> modelType,
String modelId) |
protected String |
domain(Class<?> modelType) |
EventStore |
eventStore() |
Function<DeserializingMessage,Object> |
interceptHandling(Function<DeserializingMessage,Object> function,
Handler<DeserializingMessage> handler,
String consumer) |
void |
invalidateCache() |
<T> Model<T> |
load(String modelId,
Class<T> modelType) |
protected SnapshotRepository |
snapshotRepository(Class<?> modelType) |
protected SnapshotTrigger |
snapshotTrigger(Class<?> modelType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmerge, wrappublic <T> Model<T> load(String modelId, Class<T> modelType)
load in interface EventSourcingpublic void invalidateCache()
invalidateCache in interface EventSourcingpublic EventStore eventStore()
eventStore in interface EventSourcingprotected <T> DefaultEventSourcing.EventSourcedModel<T> createEsModel(Class<T> modelType, String modelId)
public Function<DeserializingMessage,Object> interceptHandling(Function<DeserializingMessage,Object> function, Handler<DeserializingMessage> handler, String consumer)
interceptHandling in interface HandlerInterceptorprotected SnapshotRepository snapshotRepository(Class<?> modelType)
protected SnapshotTrigger snapshotTrigger(Class<?> modelType)
Copyright © 2019 Flux Capacitor. All rights reserved.