org.infinispan.iteration.impl.TransactionAwareEntryIterable Maven / Gradle / Ivy
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.filter.KeyValueFilter;
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,
KeyValueFilter super K, ? super V> filter, TxInvocationContext ctx,
Cache cache) {
super(entryIterable, filter, null, ctx, cache);
this.entryIterable = entryIterable;
}
@Override
public CloseableIterable> converter(Converter super K, ? super V, C> converter) {
return new TransactionAwareCloseableIterable<>(entryIterable.converter(converter),
filter, converter, ctx, cache);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy