org.infinispan.context.impl.ImmutableContext Maven / Gradle / Ivy
package org.infinispan.context.impl;
import org.infinispan.commons.CacheException;
import org.infinispan.commons.util.InfinispanCollections;
import org.infinispan.container.entries.CacheEntry;
import org.infinispan.container.entries.InternalCacheEntry;
import org.infinispan.context.InvocationContext;
import org.infinispan.remoting.transport.Address;
import java.util.Map;
import java.util.Set;
/**
* This context is a non-context for operations such as eviction which are not related
* to the method invocation which caused them.
*
* @author Sanne Grinovero (C) 2011 Red Hat Inc.
*/
public final class ImmutableContext implements InvocationContext {
public static final ImmutableContext INSTANCE = new ImmutableContext();
private ImmutableContext() {
//don't create multiple instances
}
@Override
public CacheEntry lookupEntry(Object key) {
throw newUnsupportedMethod();
}
@Override
public Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy