シャットダウン時に走るスレッドを用意してRuntimeに渡す.参考:日記(仮) >> Javaプログラム終了時に確実に終了処理をするミニマルなコードはこんな感じか public class ShutdownHookSample { public static void main(String[] args) { // Set thread to be…
Quote saved.
Login to quote this blog
Failed to save quote. Please try again later.
You cannot quote because this article is private.