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

cn.hippo4j.starter.spi.CustomRejectedExecutionHandler Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
package cn.hippo4j.starter.spi;

import java.util.concurrent.RejectedExecutionHandler;

/**
 * Custom rejectedExecution handler.
 *
 * @author chen.ma
 * @date 2021/7/10 23:51
 */
public interface CustomRejectedExecutionHandler {

    /**
     * Get custom reject policy type.
     *
     * @return
     */
    Integer getType();

    /**
     * Get custom reject policy.
     *
     * @return
     */
    RejectedExecutionHandler generateRejected();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy