Skip to content

Make runtime shutdown hook optional #84

@flqw

Description

@flqw

Hi,

i'm using the db in a spring boot application with a complex shutdown cycle. I have placed the close() command exactly where i want it, but the runtime shutdown hook registered in the builder

https://github.com/dizitart/nitrite-database/blob/ad304b5ade803b012af089f53e1f7ead14da2cd3/nitrite/src/main/java/org/dizitart/no2/NitriteBuilder.java#L475

fires before that, what leads to some unwanted data loss. Can you add a method to the builder which disables the registering of the shutdown hook?

Thanks.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions