Class WorkerPoolHelper
java.lang.Object
co.yellowdog.platform.clients.scheduler.WorkerPoolHelper
Helper class to make it easier to write consumers of the
WorkerPoolClient
.
This class provides a number of methods that return a Future
allowing consumers
to simply wait for the required state of a worker pool before continuing on.
-
Constructor Summary
ConstructorsConstructorDescriptionWorkerPoolHelper
(WorkerPool workerPool, WorkerPoolClientImpl workerPoolClientImpl) -
Method Summary
Modifier and TypeMethodDescriptionwhenWorkerPoolMatches
(@NonNull Predicate<WorkerPool> predicate) whenWorkerPoolStatusIs
(@NonNull WorkerPoolStatus status)
-
Constructor Details
-
WorkerPoolHelper
-
-
Method Details
-
whenWorkerPoolMatches
-
whenWorkerPoolStatusIs
-