1 package ch.qos.logback.core.util; 2 3 public interface InvocationGate { 4 5 final long TIME_UNAVAILABLE = -1; 6 7 /** 8 * The caller of this method can decide to skip further work if the returned value is true. 9 * 10 * Implementations should be able to give a reasonable answer even if current time date is unavailable. 11 * 12 * @param currentTime can be TIME_UNAVAILABLE (-1) to signal that time is not available 13 * @return if true, caller should skip further work 14 */ 15 public abstract boolean isTooSoon(long currentTime); 16 17 }