Package org.apache.curator.framework
Interface CuratorTempFramework
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
CuratorTempFrameworkImpl
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
-
Method Details
-
close
void close()Stop the client- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
inTransaction
Start a transaction builder- Returns:
- builder object
- Throws:
Exception
- errors
-
getData
Start a get data builder- Returns:
- builder object
- Throws:
Exception
- errors
-