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 9 * value is true. 10 * 11 * Implementations should be able to give a reasonable answer even if current 12 * time date is unavailable. 13 * 14 * @param currentTime can be TIME_UNAVAILABLE (-1) to signal that time is not 15 * available 16 * @return if true, caller should skip further work 17 */ 18 public abstract boolean isTooSoon(long currentTime); 19 20 }