Interface BiLocator<I,K,V>

All Superinterfaces:
Locator<I,Map.Entry<K,V>>

public interface BiLocator<I,K,V> extends Locator<I,Map.Entry<K,V>>
Locates a pair of values from a cache.
Author:
Paul Ferraro
  • Method Details

    • findEntry

      Locates the value in the cache with the specified identifier.
      Parameters:
      id - the cache entry identifier
      Returns:
      the value of the cache entry, or null if not found.
    • tryEntry

      default Map.Entry<CompletionStage<K>,CompletionStage<V>> tryEntry(I id)
      Locates the value in the cache with the specified identifier, if available.
      Parameters:
      id - the cache entry identifier
      Returns:
      the value of the cache entry, or null if not found or is in use.
    • findValueAsync

      default CompletionStage<Map.Entry<K,V>> findValueAsync(I id)
      Description copied from interface: Locator
      Locates the value in the cache with the specified identifier.
      Specified by:
      findValueAsync in interface Locator<I,K>
      Parameters:
      id - the cache entry identifier
      Returns:
      the value of the cache entry, or null if not found.