core/src/main/java/org/infinispan/commands/functional/ReadOnlyKeyCommand.java
// Not really invoked unless in local mode
Not really invoked unless in local mode
Not really invoked unless in local mode
@Override
   public Object perform(InvocationContext ctx) throws Throwable {
      CacheEntry<K, V> entry = ctx.lookupEntry(key);
      if (entry == null) {
         throw new IllegalStateException();
      }
      ReadEntryView<K, V> ro = entry.isNull() ? EntryViews.noValue((K) key) : EntryViews.readOnly(entry);
      R ret = f.apply(ro);
      return snapshot(ret);
   }
@ Override public Object perform ( InvocationContext ctx ) throws Throwable { CacheEntry < K , V > entry = ctx . lookupEntry ( key ) ; if ( entry == null ) { throw new IllegalStateException ( ) ; } ReadEntryView < K , V > ro = entry . isNull ( ) ? EntryViews . noValue ( ( K ) key ) : EntryViews . readOnly ( entry ) ; R ret = f . apply ( ro ) ; return snapshot ( ret ) ; }
Not really invoked unless in local mode
Not really invoked unless in local mode