Package io.axoniq.framework.springboot
Class PostgresqlProperties
java.lang.Object
io.axoniq.framework.springboot.PostgresqlProperties
Properties for configuring the Axon Framework PostgreSQL extension.
These properties are bound to the axon.postgresql prefix.
- Since:
- 1.0.0
- Author:
- Steven van Beelen, John Hendrikx
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns how the engine should handle a missing or incomplete schema on startup.booleanReturns whether the PostgreSQL extension is enabled.voidsetEnabled(boolean enabled) Sets whether the PostgreSQL extension is enabled.voidsetSchemaInitialization(SchemaInitialization schemaInitialization) Sets how the engine should handle a missing or incomplete schema on startup.
-
Constructor Details
-
PostgresqlProperties
public PostgresqlProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns whether the PostgreSQL extension is enabled.- Returns:
trueif enabled,falseotherwise
-
setEnabled
public void setEnabled(boolean enabled) Sets whether the PostgreSQL extension is enabled.- Parameters:
enabled-trueto enable,falseto disable
-
getSchemaInitialization
Returns how the engine should handle a missing or incomplete schema on startup.- Returns:
- the configured
SchemaInitialization
-
setSchemaInitialization
Sets how the engine should handle a missing or incomplete schema on startup.- Parameters:
schemaInitialization- theSchemaInitializationto use, cannot benull
-