Class ThreadBufferedGeneratorDecorator<T>

    • Method Detail

      • next

        public T next()
        Generates a next item.
        Specified by:
        next in interface Generator<T>
        Specified by:
        next in interface Iterator<T>
        Returns:
        The next item generated
      • remove

        public void remove()
        Specified by:
        remove in interface Iterator<T>
      • pauseBufferRefill

        public void pauseBufferRefill()
        Pauses the creation of new(!) IDs, any IDs already created are still available for consumption via next().
      • enableBufferRefill

        public void enableBufferRefill()
        Enables or resumes the creation of new(!) IDs, any IDs already created are still available for consumption via next(), new ones will be added in case the buffer is empty and the underlying Generator still can create new IDs.
      • getDecoratee

        public Generator<T> getDecoratee()
        Specified by:
        getDecoratee in interface org.refcodes.mixin.DecorateeAccessor<T>