Class NaiveUserAgent.NullCache<T>

    • Constructor Detail

      • NullCache

        protected NullCache()
    • Method Detail

      • get

        public T get​(String uri)
        Specified by:
        get in interface FSMultiThreadCache<T>
        Parameters:
        uri - The resolved uri as returned from any uri resolver. Never null.
        Returns:
        The contents of that uri or null if not cached.
      • put

        public void put​(String uri,
                        T value)
        Description copied from interface: FSMultiThreadCache
        Store value in cache. Please note that in a multi-threaded environment this may be called multiple times with the same uri while get returns null.
        Specified by:
        put in interface FSMultiThreadCache<T>
        Parameters:
        uri - The resolved uri as returned from any uri resolver. Never null.
        value - The contents of the uri as returned from any protocol handlers or the default user agent. Never null.