Class ExecuteWhenDoneYielder<T>
java.lang.Object
org.apache.druid.java.util.common.guava.ExecuteWhenDoneYielder<T>
- All Implemented Interfaces:
Closeable,AutoCloseable,Yielder<T>
-
Constructor Summary
ConstructorsConstructorDescriptionExecuteWhenDoneYielder(Yielder<T> baseYielder, Runnable runnable, Executor executor) -
Method Summary
-
Constructor Details
-
ExecuteWhenDoneYielder
-
-
Method Details
-
get
Description copied from interface:YielderGets the object currently held by this Yielder. Can be called multiple times as long as next() is not called. Once next() is called on this Yielder object, all further operations on this object are undefined. -
next
Description copied from interface:YielderGets the next Yielder in the chain. The argument is used as the accumulator value to pass along to start the accumulation until the next yield() call or iteration completes. Once next() is called on this Yielder object, all further operations on this object are undefined. -
isDone
public boolean isDone()Description copied from interface:YielderReturns true if this is the last Yielder in the chain. Review the class level javadoc for an understanding of the contract for other methods when isDone() is true. Once next() is called on this Yielder object, all further operations on this object are undefined. -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-