public class ZooAuthenticationKeyWatcher extends Object implements org.apache.zookeeper.Watcher
| Constructor and Description |
|---|
ZooAuthenticationKeyWatcher(AuthenticationTokenSecretManager secretManager,
ZooReader zk,
String baseNode) |
| Modifier and Type | Method and Description |
|---|---|
void |
process(org.apache.zookeeper.WatchedEvent event) |
void |
updateAuthKeys()
Entry point to seed the local
AuthenticationKey cache from ZooKeeper and set the first watcher for future updates in ZooKeeper. |
public ZooAuthenticationKeyWatcher(AuthenticationTokenSecretManager secretManager, ZooReader zk, String baseNode)
public void process(org.apache.zookeeper.WatchedEvent event)
process in interface org.apache.zookeeper.Watcherpublic void updateAuthKeys()
throws org.apache.zookeeper.KeeperException,
InterruptedException
AuthenticationKey cache from ZooKeeper and set the first watcher for future updates in ZooKeeper.org.apache.zookeeper.KeeperExceptionInterruptedExceptionCopyright © 2011–2017 The Apache Software Foundation. All rights reserved.