Package io.datarouter.conveyor
Class Conveyor
java.lang.Object
io.datarouter.conveyor.Conveyor
- All Implemented Interfaces:
ConveyorRunnable,Comparable<ConveyorRunnable>,Runnable
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionConveyor(ConveyorService conveyorService, ConveyorConfiguration conveyorConfiguration, String name, Supplier<Boolean> shouldRun) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.datarouter.conveyor.ConveyorRunnable
compareTo
-
Constructor Details
-
Conveyor
public Conveyor(ConveyorService conveyorService, ConveyorConfiguration conveyorConfiguration, String name, Supplier<Boolean> shouldRun)
-
-
Method Details
-
run
public void run() -
getName
- Specified by:
getNamein interfaceConveyorRunnable
-
shouldRun
public boolean shouldRun()- Specified by:
shouldRunin interfaceConveyorRunnable
-
toString
-