001package ch.qos.logback.core.util;
002
003public interface InvocationGate {
004
005    final long TIME_UNAVAILABLE = -1;
006
007    /**
008     * The caller of this method can decide to skip further work if the returned value is true.
009     * 
010     * Implementations should be able to give a reasonable answer even if  current time date is unavailable.
011     * 
012     * @param currentTime can be TIME_UNAVAILABLE (-1) to signal that time is not available
013     * @return if true, caller should skip further work
014     */
015    public abstract boolean isTooSoon(long currentTime);
016
017}