public static class AggregateClient.Builder<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
AggregateClient<T> |
build() |
<E> AggregateClient.Builder<T> |
configureObjectMapper(Consumer<com.fasterxml.jackson.databind.ObjectMapper> consumer)
Allows object mapper customization.
|
<E> AggregateClient.Builder<T> |
registerHandler(Class<E> eventClass,
EventHandler<T,E> handler) |
<E> AggregateClient.Builder<T> |
registerHandler(String eventType,
Class<E> eventClass,
EventHandler<T,E> handler) |
<E> AggregateClient.Builder<T> |
withRetryStrategy(RetryStrategy retryStrategy) |
<E> AggregateClient.Builder<T> |
withUpdateStrategy(UpdateStrategy updateStrategy) |
public <E> AggregateClient.Builder<T> registerHandler(Class<E> eventClass, EventHandler<T,E> handler)
public <E> AggregateClient.Builder<T> registerHandler(String eventType, Class<E> eventClass, EventHandler<T,E> handler)
public <E> AggregateClient.Builder<T> withRetryStrategy(RetryStrategy retryStrategy)
public <E> AggregateClient.Builder<T> withUpdateStrategy(UpdateStrategy updateStrategy)
public <E> AggregateClient.Builder<T> configureObjectMapper(Consumer<com.fasterxml.jackson.databind.ObjectMapper> consumer)
public AggregateClient<T> build()
Copyright © 2021. All rights reserved.