Package io.micronaut.neo4j.bolt
Class Neo4jBoltConfiguration.Neo4jEmbeddedSettings
java.lang.Object
io.micronaut.neo4j.bolt.Neo4jBoltConfiguration.Neo4jEmbeddedSettings
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
- Enclosing class:
- Neo4jBoltConfiguration
@ConfigurationProperties("embedded")
public static class Neo4jBoltConfiguration.Neo4jEmbeddedSettings
extends Object
implements io.micronaut.core.util.Toggleable
The configuration settings for the embedded Neo4j.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean
The default drop data value.static final boolean
The default enable value.static final boolean
The default ephemeral value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
void
setDirectory
(String directory) void
setDropData
(boolean dropData) Default value (false).void
setEnabled
(boolean enabled) Default value (true).void
setEphemeral
(boolean ephemeral) Default value (false).void
setOptions
(Map<String, Object> options)
-
Field Details
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
DEFAULT_EPHEMERAL
public static final boolean DEFAULT_EPHEMERALThe default ephemeral value.- See Also:
-
DEFAULT_DROPDATA
public static final boolean DEFAULT_DROPDATAThe default drop data value.- See Also:
-
-
Constructor Details
-
Neo4jEmbeddedSettings
public Neo4jEmbeddedSettings()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
- Returns:
- Whether the embedded sever is enabled
-
setEnabled
public void setEnabled(boolean enabled) Default value (true).- Parameters:
enabled
- enable the server
-
getOptions
- Returns:
- Options to pass to the embedded server
-
setOptions
- Parameters:
options
- The options to pass to the embedded server
-
getDirectory
- Returns:
- The directory to store embedded data
-
setDirectory
- Parameters:
directory
- The directory
-
isDropData
public boolean isDropData()- Returns:
- Whether to drop existing data
-
setDropData
public void setDropData(boolean dropData) Default value (false).- Parameters:
dropData
- drop the existing data
-
isEphemeral
public boolean isEphemeral()- Returns:
- Whether to create the database in a temp directory and deleted on shutdown
-
setEphemeral
public void setEphemeral(boolean ephemeral) Default value (false).- Parameters:
ephemeral
- define the embedded ser as ephemeral
-