public interface Watcher
| 限定符和类型 | 方法和说明 |
|---|---|
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–2021. All rights reserved.