All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.server.ShutdownHook Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev05
Show newest version
package org.infinispan.server;

/**
 * @author Tristan Tarrant
 * @since 10.0
 */
public class ShutdownHook extends Thread {
   ExitHandler exitHandler;

   public ShutdownHook(ExitHandler exitHandler) {
      this.exitHandler = exitHandler;
   }

   @Override
   public void run() {
      exitHandler.exit(ExitStatus.SERVER_SHUTDOWN);
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy