ch.qos.logback.core.util.InvocationGate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtdata-lib-realer Show documentation
Show all versions of virtdata-lib-realer Show documentation
With inspiration from other libraries
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);
}