| Package | Description |
|---|---|
| io.serialized.client.aggregate |
| Modifier and Type | Method and Description |
|---|---|
static <T> AggregateClient.Builder<T> |
AggregateClient.aggregateClient(String aggregateType,
Class<T> stateClass,
SerializedClientConfig config) |
<E> AggregateClient.Builder<T> |
AggregateClient.Builder.configureObjectMapper(Consumer<com.fasterxml.jackson.databind.ObjectMapper> consumer)
Allows object mapper customization.
|
<E> AggregateClient.Builder<T> |
AggregateClient.Builder.registerHandler(Class<E> eventClass,
EventHandler<T,E> handler)
Registers which handler should be invoked during aggregate load/hydration.
|
<E> AggregateClient.Builder<T> |
AggregateClient.Builder.registerHandler(String eventType,
Class<E> eventClass,
EventHandler<T,E> handler)
Registers which handler should be invoked during aggregate load/hydration.
|
<E> AggregateClient.Builder<T> |
AggregateClient.Builder.withLimit(int limit)
Limits the number of returned versions (event batches) on aggregate load (during update).
|
<E> AggregateClient.Builder<T> |
AggregateClient.Builder.withRetryStrategy(RetryStrategy retryStrategy) |
<E> AggregateClient.Builder<T> |
AggregateClient.Builder.withUpdateStrategy(UpdateStrategy updateStrategy) |
Copyright © 2022. All rights reserved.