public class TransactionAwareCloseableIterable<K,V,C> extends Object implements CloseableIterable<CacheEntry<K,C>>
Modifier and Type | Field and Description |
---|---|
protected Cache<K,?> |
cache |
protected Converter<? super K,? super V,? extends C> |
converter |
protected TxInvocationContext<LocalTransaction> |
ctx |
protected KeyValueFilter<? super K,? super V> |
filter |
protected CloseableIterable<CacheEntry<K,C>> |
iterable |
Constructor and Description |
---|
TransactionAwareCloseableIterable(CloseableIterable<CacheEntry<K,C>> iterable,
KeyValueFilter<? super K,? super V> filter,
Converter<? super K,? super V,? extends C> converter,
TxInvocationContext<LocalTransaction> ctx,
Cache<K,?> cache) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
CloseableIterator<CacheEntry<K,C>> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected final CloseableIterable<CacheEntry<K,C>> iterable
protected final TxInvocationContext<LocalTransaction> ctx
protected final KeyValueFilter<? super K,? super V> filter
public TransactionAwareCloseableIterable(CloseableIterable<CacheEntry<K,C>> iterable, KeyValueFilter<? super K,? super V> filter, Converter<? super K,? super V,? extends C> converter, TxInvocationContext<LocalTransaction> ctx, Cache<K,?> cache)
public void close()
close
in interface AutoCloseable
close
in interface CloseableIterable<CacheEntry<K,C>>
public CloseableIterator<CacheEntry<K,C>> iterator()
iterator
in interface Iterable<CacheEntry<K,C>>
iterator
in interface CloseableIterable<CacheEntry<K,C>>
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.