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 009 * value is true. 010 * 011 * Implementations should be able to give a reasonable answer even if current 012 * time date is unavailable. 013 * 014 * @param currentTime can be TIME_UNAVAILABLE (-1) to signal that time is not 015 * available 016 * @return if true, caller should skip further work 017 */ 018 public abstract boolean isTooSoon(long currentTime); 019 020}