Class RootServicesCache

    • Method Detail

      • getInstance

        public static RootServicesCache getInstance()
        Returns the cache singleton instance
        Returns:
        the cache shared instance.
      • invalidate

        public void invalidate​(URI uri)
        Description copied from interface: ResourceCache
        Discards any cached value for key key.
        Specified by:
        invalidate in interface ResourceCache<URI>
        Parameters:
        uri - the key to remove in the cache.
      • update

        public void update​(URI uri,
                           RootServices rootServices)
        Updates the cache with a new version of a root services document.

        This method should not need to be called in regular flows. It is automatically called when a resource is obtained using GetRootServices.

        Parameters:
        uri - the root services URI
        rootServices - the root services resource
        Since:
        3.1.0
      • getRootServices

        public RootServices getRootServices​(URI uri)
        Loads on demand the root services resource.
        Parameters:
        uri - the root services URI
        Returns:
        the root services