All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.context.EntryLookup Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.context;

import java.util.Collection;
import java.util.Map;

import org.infinispan.container.entries.CacheEntry;

/**
 * Interface that can look up MVCC wrapped entries.
 *
 * @author Manik Surtani ([email protected])
 * @since 4.0
 */
public interface EntryLookup {
   /**
    * Retrieves an entry from the collection of looked up entries in the current scope.
    * 

* * @param key key to look up * @return an entry, or null if it cannot be found. */ CacheEntry lookupEntry(Object key); /** * Retrieves a map of entries looked up within the current scope. *

* @return a map of looked up entries. */ Map getLookedUpEntries(); /** * Puts an entry in the registry of looked up entries in the current scope. *

* * @param key key to store * @param e entry to store */ void putLookedUpEntry(Object key, CacheEntry e); void removeLookedUpEntry(Object key); default void removeLookedUpEntries(Collection keys) { for (Object key : keys) { removeLookedUpEntry(key); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy