Class RemovableCloseableIterator<K,C>

java.lang.Object
org.infinispan.commons.util.RemovableIterator<C>
org.infinispan.commons.util.RemovableCloseableIterator<C>
org.infinispan.stream.impl.RemovableCloseableIterator<K,C>
All Implemented Interfaces:
AutoCloseable, Iterator<C>, org.infinispan.commons.util.CloseableIterator<C>

public class RemovableCloseableIterator<K,C> extends org.infinispan.commons.util.RemovableCloseableIterator<C>
Deprecated.
Users should use RemovableCloseableIterator instead
A CloseableIterator implementation that allows for a CloseableIterator that doesn't allow remove operations to implement remove by delegating the call to the provided cache to remove the previously read value. The key used to remove from the cache is determined by first applying the removeFunction to the value retrieved from the iterator.
Since:
8.0
Author:
wburns
  • Field Summary

    Fields inherited from class org.infinispan.commons.util.RemovableCloseableIterator

    realIterator

    Fields inherited from class org.infinispan.commons.util.RemovableIterator

    consumer, currentValue, previousValue
  • Constructor Summary

    Constructors
    Constructor
    Description
    RemovableCloseableIterator(org.infinispan.commons.util.CloseableIterator<C> realIterator, Cache<K,?> cache, Function<? super C,K> removeFunction)
    Deprecated.
     
  • Method Summary

    Methods inherited from class org.infinispan.commons.util.RemovableCloseableIterator

    close

    Methods inherited from class org.infinispan.commons.util.RemovableIterator

    getNextFromIterator, hasNext, next, remove

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.Iterator

    forEachRemaining, hasNext, next, remove
  • Constructor Details

    • RemovableCloseableIterator

      public RemovableCloseableIterator(org.infinispan.commons.util.CloseableIterator<C> realIterator, Cache<K,?> cache, Function<? super C,K> removeFunction)
      Deprecated.