public interface Watcher
| Modifier and Type | Method and Description |
|---|---|
void |
setUpdateCallback(java.util.function.Consumer<java.lang.String> func)
SetUpdateCallback sets the callback function that the watcher will call
when the policy in DB has been changed by other instances.
|
void |
setUpdateCallback(java.lang.Runnable runnable)
SetUpdateCallback sets the callback function that the watcher will call
when the policy in DB has been changed by other instances.
|
void |
update()
Update calls the update callback of other instances to synchronize their policy.
|
void setUpdateCallback(java.lang.Runnable runnable)
runnable - the callback function, will be called when policy is updated.void setUpdateCallback(java.util.function.Consumer<java.lang.String> func)
func - the callback function, will be called when policy is updated.void update()
Copyright © 2017–2023. All rights reserved.