1 Reply Latest reply on Jan 25, 2012 5:12 AM by Sanne Grinovero

    How to convert org.infinispan.util.Immutables$ImmutableInternalCacheEntry to InternalCacheEntry

    sudheesh p Newbie

      Hi,

       

      I have used REPL_SYNC as clustering mode in my cache configuration and do this:

       

      DataContainer dataContainer = cache.getAdvancedCache().getDataContainer();

      Set cacheEntries = dataContainer.entrySet();

        Iterator itr = cacheEntries.iterator();

                                              while(itr.hasNext()){

                                                           Object obj = itr.next();

      }

       

      Here the obj is an instance of org.infinispan.util.Immutables$ImmutableInternalCacheEntry class.

       

      I need to modify certain attributes of the CacheEntry such as lifespan. I am unable to do any set*() operations on obj, since its not permissible.

      So how do i convert the  Immutables$ImmutableInternalCacheEntry to InternalCacheEntry object.

      Pls advice.

       

       

      Regards

      Sudheesh