public static class MongoSagaStore.Builder extends Object
MongoSagaStore.
The Serializer is defaulted to a XStreamSerializer. The MongoTemplate is a
hard requirement and as such should be provided.
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
MongoSagaStore |
build()
Initializes a
MongoSagaStore as specified through this Builder. |
MongoSagaStore.Builder |
mongoTemplate(MongoTemplate mongoTemplate)
Sets the
MongoTemplate providing access to the collections. |
MongoSagaStore.Builder |
serializer(org.axonframework.serialization.Serializer serializer)
Sets the
Serializer used to de-/serialize a Saga instance. |
protected void |
validate()
Validates whether the fields contained in this Builder are set accordingly.
|
public MongoSagaStore.Builder mongoTemplate(MongoTemplate mongoTemplate)
MongoTemplate providing access to the collections.mongoTemplate - the MongoTemplate providing access to the collectionspublic MongoSagaStore.Builder serializer(org.axonframework.serialization.Serializer serializer)
Serializer used to de-/serialize a Saga instance. Defaults to a XStreamSerializer.serializer - a Serializer used to de-/serialize a Saga instancepublic MongoSagaStore build()
MongoSagaStore as specified through this Builder.MongoSagaStore as specified through this Builderprotected void validate()
throws org.axonframework.common.AxonConfigurationException
org.axonframework.common.AxonConfigurationException - if one field is asserted to be incorrect according to the Builder's
specificationsCopyright © 2010–2022. All rights reserved.