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

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

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

import java.util.concurrent.CompletableFuture;

/**
 * ExitHandler provides alternate implementations for exiting the server
 *
 * @author Tristan Tarrant
 * @since 10.0
 */

public abstract class ExitHandler {
   protected final CompletableFuture exitFuture;

   ExitHandler() {
      exitFuture = new CompletableFuture<>();
   }

   public CompletableFuture getExitFuture() {
      return exitFuture;
   }

   public abstract void exit(ExitStatus status);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy