public class ZkStateReader.AliasesManager extends Object implements org.apache.zookeeper.Watcher
| Constructor and Description |
|---|
AliasesManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyModificationAndExportToZk(UnaryOperator<Aliases> op)
Writes an updated
Aliases to zk. |
Aliases |
getAliases() |
void |
process(org.apache.zookeeper.WatchedEvent event) |
boolean |
update()
Ensures the internal aliases is up to date.
|
public Aliases getAliases()
public void applyModificationAndExportToZk(UnaryOperator<Aliases> op)
Aliases to zk.
It will retry if there are races with other modifications, giving up after 30 seconds with a SolrException.
The caller should understand it's possible the aliases has further changed if it examines it.public boolean update()
throws org.apache.zookeeper.KeeperException,
InterruptedException
org.apache.zookeeper.KeeperExceptionInterruptedExceptionpublic void process(org.apache.zookeeper.WatchedEvent event)
process in interface org.apache.zookeeper.WatcherCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.