-
- All Superinterfaces:
com.github.akurilov.commons.concurrent.AsyncRunnable,com.github.akurilov.fiber4j.Fiber,java.rmi.Remote
- All Known Implementing Classes:
LoadGeneratorImpl
public interface LoadGenerator<I extends Item,O extends Operation<I>> extends com.github.akurilov.fiber4j.FiberCreated on 11.07.16.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()longgeneratedOpCount()booleanisItemInputFinished()booleanisNothingToRecycle()voidrecycle(O op)Enqueues the task for further recycling
-
-
-
Method Detail
-
isItemInputFinished
boolean isItemInputFinished()
- Returns:
- true if item input has been read until its end, false otherwise
-
generatedOpCount
long generatedOpCount()
- Returns:
- sum of the new tasks and recycled ones
-
recycle
void recycle(O op)
Enqueues the task for further recycling- Parameters:
op- the task to recycle
-
isNothingToRecycle
boolean isNothingToRecycle()
- Returns:
- true if the internal recycle queue is empty, false otherwise
-
close
void close() throws java.io.IOException- Specified by:
closein interfacecom.github.akurilov.commons.concurrent.AsyncRunnable- Throws:
java.io.IOException
-
-