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

org.infinispan.iteration.impl.TransactionAwareEntryIterable Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.iteration.impl;

import org.infinispan.Cache;
import org.infinispan.commons.util.CloseableIterable;
import org.infinispan.container.entries.CacheEntry;
import org.infinispan.context.impl.TxInvocationContext;
import org.infinispan.filter.Converter;
import org.infinispan.iteration.EntryIterable;
import org.infinispan.transaction.impl.LocalTransaction;

/**
 * {@inheritDoc}
 *
 * @author wburns
 * @since 7.0
 */
public class TransactionAwareEntryIterable extends TransactionAwareCloseableIterable implements EntryIterable {
   private final EntryIterable entryIterable;

   public TransactionAwareEntryIterable(EntryIterable entryIterable, TxInvocationContext ctx,
                                        Cache cache) {
      super(entryIterable, ctx, cache);
      this.entryIterable = entryIterable;
   }

   @Override
   public  CloseableIterable> converter(Converter converter) {
      return new TransactionAwareCloseableIterable<>(entryIterable.converter(converter), ctx, cache);
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy