micronaut-mongodb
micronaut-mongodb copied to clipboard
Feature request: Delay closing the connection pool on server shutdown
Hi,
I would like to have the option to delay closing the connection pool on server shutdown. This would be used to do database inserts/updates when the server is shutting down:
@EventListener public void onApplicationShutdown(ApplicationShutdownEvent event) { //Do some db operation }
Currently when this is run, the connection pool is already closed.