org.infinispan.security.actions.GetCacheEntryAction Maven / Gradle / Ivy
package org.infinispan.security.actions;
import org.infinispan.AdvancedCache;
import org.infinispan.container.entries.CacheEntry;
/**
* GetCacheEntryAction.
*
* @author Tristan Tarrant
* @since 7.2
*/
public class GetCacheEntryAction extends AbstractAdvancedCacheAction> {
private final K key;
public GetCacheEntryAction(AdvancedCache, ?> cache, K key) {
super(cache);
this.key = key;
}
@Override
public CacheEntry run() {
return ((AdvancedCache) cache).getCacheEntry(key);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy