@ThreadSafe public class ClientVersionChangeMonitor extends Object implements Runnable
ClientVersion
for more details.
Since all KCL workers will be running the monitor, the monitor poll interval uses
a random jitter to stagger the reads to ddb.
The class is thread-safe and will invoke callback on a separate thread.| Modifier and Type | Class and Description |
|---|---|
static interface |
ClientVersionChangeMonitor.ClientVersionChangeCallback
Interface of a callback to invoke when monitor condition is true.
|
| Constructor and Description |
|---|
ClientVersionChangeMonitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel the monitor explicity before the condition is met, e.g.
|
void |
run() |
void |
startMonitor() |
String |
toString() |
public void startMonitor()
public void cancel()
Copyright © 2025. All rights reserved.