Class TraceableIterator<T>

  • All Implemented Interfaces:
    Iterator<T>

    public class TraceableIterator<T>
    extends Object
    implements Iterator<T>
    Represents wrapper which allows the iterator methods to execute within context of a specified span.
    • Constructor Detail

      • TraceableIterator

        public TraceableIterator​(Iterator<T> iter)
        Parameters:
        iter - Iterator to which all calls will be delegated.
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface Iterator<T>
      • next

        public T next()
        Specified by:
        next in interface Iterator<T>