Pages

JVM shutdowns detection


Runtime rt = Runtime.getRuntime();
rt.addShutdownHook(new Thread() {
public void run() {
// .... your code ....
}
});

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.