Interface IResourceStoreManager.IResourceStoreWithLoader<Key,​Value>

    • Method Detail

      • computeIfAbsent

        Value computeIfAbsent​(Key key)
                       throws IOException
        Gets the value for the given key. When the value exists already, it will be returned. If the value does not exist yet, it will be loaded using the bound loader.
        Parameters:
        key - The key for which to get the value.
        Returns:
        The associated value, either from the store if still fresh, or obtained from the bound loader.
        Throws:
        IOException - If the loader throws an exception.