java.lang.AutoCloseable, java.io.CloseableCuratorTempFrameworkImplpublic interface CuratorTempFramework
extends java.io.Closeable
Temporary CuratorFramework instances are meant for single requests to ZooKeeper ensembles over a failure prone network such as a WAN. The APIs available from CuratorTempFramework are limited. Further, the connection will be closed after a period of inactivity.
Based on an idea mentioned in a post by Camille Fournier: http://whilefalse.blogspot.com/2012/12/building-global-highly-available.html
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Stop the client
|
TempGetDataBuilder |
getData() |
Start a get data builder
|
CuratorTransaction |
inTransaction() |
Start a transaction builder
|
void close()
close in interface java.lang.AutoCloseableclose in interface java.io.CloseableCuratorTransaction inTransaction() throws java.lang.Exception
java.lang.Exception - errorsTempGetDataBuilder getData() throws java.lang.Exception
java.lang.Exception - errorsCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.