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

com.github.phantomthief.collection.impl.RejectHandler Maven / Gradle / Ivy

There is a newer version: 0.2.5
Show newest version
package com.github.phantomthief.collection.impl;

import java.util.concurrent.locks.Condition;

import javax.annotation.Nullable;

/**
 * @author w.vela
 * Created on 2019-07-30.
 */
interface RejectHandler {

    /**
     * execute on caller thread
     * @return {@code true} 继续执行, {@code false} 阻止执行
     */
    boolean onReject(T element, @Nullable Condition condition) throws Throwable;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy