Class DefaultUpdateCheckManager

    • Field Detail

      • LOGGER

        private static final org.slf4j.Logger LOGGER
      • UPDATED_KEY_SUFFIX

        private static final java.lang.String UPDATED_KEY_SUFFIX
        See Also:
        Constant Field Values
      • ERROR_KEY_SUFFIX

        private static final java.lang.String ERROR_KEY_SUFFIX
        See Also:
        Constant Field Values
      • SESSION_CHECKS

        static final java.lang.Object SESSION_CHECKS
      • CONFIG_PROP_SESSION_STATE

        static final java.lang.String CONFIG_PROP_SESSION_STATE
        See Also:
        Constant Field Values
      • TS_NEVER

        private static final long TS_NEVER
        This "last modified" timestamp is used when no local file is present, signaling "first attempt" to cache a file, but as it is not present, outcome is simply always "go get it".

        Its meaning is "we never downloaded it", so go grab it.

        See Also:
        Constant Field Values
      • TS_UNKNOWN

        private static final long TS_UNKNOWN
        This "last modified" timestamp is returned by getLastUpdated(Properties, String) method when the timestamp entry is not found (due properties file not present or key not present in properties file, irrelevant). It means that the cached file (artifact or metadata) is present, but we cannot tell when was it downloaded. In this case, it is UpdatePolicyAnalyzer applying in-effect policy, that decide is update (re-download) needed or not. For example, if policy is "never", we should not re-download the file.

        Its meaning is "we downloaded it, but have no idea when", so let the policy decide its fate.

        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultUpdateCheckManager

        @Deprecated
        public DefaultUpdateCheckManager()
        Deprecated.