package com.avg.zaap.crashlibrary.offline.uploader;

/**
 * This interface denotes the common behavior for the delay helpers.
 * <p/>
 * Created by marek.osvald on 6.9.2016.
 */
public interface IDelayHelper {

    /**
     * Returns true when enough time has passed since the last attempt.
     *
     * @param lastAttemptTimestamp last publish attempt timestamp
     * @return true, provided that enough time has passed since the last attempt, false otherwise
     */
    boolean isAttemptValid(long lastAttemptTimestamp);

}
