src/main/org/h2/server/ShutdownHandler.java
raw| 1 | /* |
| 2 | * Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0, |
| 3 | * and the EPL 1.0 (https://h2database.com/html/license.html). |
| 4 | * Initial Developer: H2 Group |
| 5 | */ |
| 6 | package org.h2.server; |
| 7 | |
| 8 | /** |
| 9 | * A shutdown handler is a listener for shutdown events. |
| 10 | */ |
| 11 | public interface ShutdownHandler { |
| 12 | |
| 13 | /** |
| 14 | * Tell the listener to shut down. |
| 15 | */ |
| 16 | void shutdown(); |
| 17 | } |