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

ch.qos.logback.core.util.InvocationGate Maven / Gradle / Ivy

There is a newer version: 2.12.15
Show newest version
package ch.qos.logback.core.util;

public interface InvocationGate {

    final long TIME_UNAVAILABLE = -1;

    /**
     * The caller of this method can decide to skip further work if the returned value is true.
     * 
     * Implementations should be able to give a reasonable answer even if  current time date is unavailable.
     * 
     * @param now can be TIME_UNAVAILABLE (-1) to signal that time is not available
     * @return if true, caller should skip further work
     */
    public abstract boolean isTooSoon(long currentTime);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy