Interface BufferedGenerator<T>

Type Parameters:
T - the generic type
All Superinterfaces:
Generator<T>, Iterator<T>, org.refcodes.mixin.Suspendable
All Known Implementing Classes:
ConcurrentBufferedGeneratorDecorator, ThreadLocalBufferedGeneratorDecorator

public interface BufferedGenerator<T> extends Generator<T>, org.refcodes.mixin.Suspendable
Base interface for a Generator using a buffer being filled upon demand or time schedule and which's buffering functionality may be suspended (Suspendable.suspend()) so that the Generator does only emit elements already present in the puffer till all elements in the buffer are expended (and does not place any new elements into the buffer to be emitted).