public static class JpaSagaStore.Builder extends Object
JpaSagaStore
.
The EntityManagerProvider
and Serializer
are hard requirements and as such should be
provided.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
JpaSagaStore |
build()
Initializes a
JpaSagaStore as specified through this Builder. |
JpaSagaStore.Builder |
entityManagerProvider(EntityManagerProvider entityManagerProvider)
Sets the
EntityManagerProvider which provides the EntityManager used to access the underlying
database. |
JpaSagaStore.Builder |
serializer(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 JpaSagaStore.Builder entityManagerProvider(EntityManagerProvider entityManagerProvider)
EntityManagerProvider
which provides the EntityManager
used to access the underlying
database.entityManagerProvider
- a EntityManagerProvider
which provides the EntityManager
used to
access the underlying databasepublic JpaSagaStore.Builder serializer(Serializer serializer)
Serializer
used to de-/serialize a Saga instance.serializer
- a Serializer
used to de-/serialize a Saga instancepublic JpaSagaStore build()
JpaSagaStore
as specified through this Builder.JpaSagaStore
as specified through this Builderprotected void validate() throws AxonConfigurationException
AxonConfigurationException
- if one field is asserted to be incorrect according to the Builder's
specificationsCopyright © 2010–2024. All rights reserved.