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

org.kiwiproject.base.process.KillTimeoutAction Maven / Gradle / Ivy

Go to download

Kiwi is a utility library. We really like Google's Guava, and also use Apache Commons. But if they don't have something we need, and we think it is useful, this is where we put it.

There is a newer version: 4.5.2
Show newest version
package org.kiwiproject.base.process;

import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.TimeUnit;

/**
 * Possible actions to take if a kill command times out.
 *
 * @see Processes#kill(long, KillSignal, long, TimeUnit, KillTimeoutAction)
 */
@Slf4j
public enum KillTimeoutAction {

    /**
     * The process will be forced killed (e.g. like a {@code kill -9}) after timeout
     */
    FORCE_KILL,

    /**
     * No action is taken after timeout
     */
    NO_OP,

    /**
     * An exception ({@link IllegalStateException}) will be thrown after timeout
     */
    THROW_EXCEPTION;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy