public class DefaultController extends Object implements Controller
- a reconciler implemented by developers specifying what to do in reaction of notifications. see more documentation on the Reconciler interface - a work-queue continuously filled with task items managed by Informer framework - a set of worker threads acutally running reconciler.
Constructor and Description |
---|
DefaultController(Reconciler reconciler,
RateLimitingQueue<Request> workQueue,
Supplier<Boolean>... readyFuncs)
Instantiates a new Default controller.
|
Modifier and Type | Method and Description |
---|---|
String |
getName() |
Duration |
getReadyCheckInternal() |
Duration |
getReadyTimeout() |
Reconciler |
getReconciler() |
int |
getWorkerCount() |
ExecutorService |
getWorkerThreadPool() |
void |
run() |
void |
setName(String name) |
void |
setReadyCheckInternal(Duration readyCheckInternal) |
void |
setReadyTimeout(Duration readyTimeout) |
void |
setReconciler(Reconciler reconciler) |
void |
setWorkerCount(int workerCount) |
void |
setWorkerThreadPool(ScheduledExecutorService workerThreadPool) |
void |
shutdown()
Shutdown the controller.
|
public DefaultController(Reconciler reconciler, RateLimitingQueue<Request> workQueue, Supplier<Boolean>... readyFuncs)
reconciler
- the reconcilerworkQueue
- the work queuereadyFuncs
- the ready funcspublic void shutdown()
Controller
shutdown
in interface Controller
public String getName()
public void setName(String name)
public int getWorkerCount()
public void setWorkerCount(int workerCount)
public ExecutorService getWorkerThreadPool()
public void setWorkerThreadPool(ScheduledExecutorService workerThreadPool)
public Reconciler getReconciler()
public void setReconciler(Reconciler reconciler)
public Duration getReadyTimeout()
public void setReadyTimeout(Duration readyTimeout)
public Duration getReadyCheckInternal()
public void setReadyCheckInternal(Duration readyCheckInternal)
Copyright © 2020. All rights reserved.