I read about SHUTDOWN and it is good if I want to tear the whole thing
down.  But what if I want to interrupt a single transaction?

On Thu, Jul 4, 2019 at 9:30 AM Evgenij Ryazanov <[email protected]> wrote:

> Thread.interrupt() is a way to database corruption.
>
> Take a look on the SHUTDOWN command:
> https://h2database.com/html/commands.html#shutdown
> You can execute this command and wait for its completion. After its
> execution you can interrupt your threads as you wish.
>
> Of course, you need to prevent allocation of new connections after this
> command, because a new connection can open the database again.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "H2 Database" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/h2-database/pSi-UJ9H-3k/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/h2-database/12c16c7c-9f1a-4d61-9972-ed4e87418661%40googlegroups.com
> <https://groups.google.com/d/msgid/h2-database/12c16c7c-9f1a-4d61-9972-ed4e87418661%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/h2-database/CAKFq1VvUP_cv-%2Bpm7xDi9VRmF-fQmepDF6OAnn1304bz31%3D4YQ%40mail.gmail.com.

Reply via email to