public class DefaultController extends java.lang.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,
java.util.function.Supplier<java.lang.Boolean>... readyFuncs)
Instantiates a new Default controller.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
java.time.Duration |
getReadyCheckInternal() |
java.time.Duration |
getReadyTimeout() |
Reconciler |
getReconciler() |
int |
getWorkerCount() |
java.util.concurrent.ExecutorService |
getWorkerThreadPool() |
void |
run() |
void |
setName(java.lang.String name) |
void |
setReadyCheckInternal(java.time.Duration readyCheckInternal) |
void |
setReadyTimeout(java.time.Duration readyTimeout) |
void |
setReconciler(Reconciler reconciler) |
void |
setWorkerCount(int workerCount) |
void |
setWorkerThreadPool(java.util.concurrent.ScheduledExecutorService workerThreadPool) |
void |
shutdown()
Shutdown the controller.
|
public DefaultController(Reconciler reconciler, RateLimitingQueue<Request> workQueue, java.util.function.Supplier<java.lang.Boolean>... readyFuncs)
reconciler - the reconcilerworkQueue - the work queuereadyFuncs - the ready funcspublic void run()
run in interface java.lang.Runnablepublic void shutdown()
Controllershutdown in interface Controllerpublic java.lang.String getName()
public void setName(java.lang.String name)
public int getWorkerCount()
public void setWorkerCount(int workerCount)
public java.util.concurrent.ExecutorService getWorkerThreadPool()
public void setWorkerThreadPool(java.util.concurrent.ScheduledExecutorService workerThreadPool)
public Reconciler getReconciler()
public void setReconciler(Reconciler reconciler)
public java.time.Duration getReadyTimeout()
public void setReadyTimeout(java.time.Duration readyTimeout)
public java.time.Duration getReadyCheckInternal()
public void setReadyCheckInternal(java.time.Duration readyCheckInternal)
Copyright © 2019. All rights reserved.