Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8601695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:54:14+00:00 2026-06-12T01:54:14+00:00

Instances of Apache Curator’s CuratorFramework class allow mutation operations to be run inTransaction() .

  • 0

Instances of Apache Curator’s CuratorFramework class allow mutation operations to be run inTransaction(). I’m currently using these calls, but can’t figure out how to commit them.

Looking at the CuratorTransaction JavaDoc, it clearly states:

Important:
     the operations are not submitted until CuratorTransactionFinal.commit() is called.

However, CuratorTransactionFinal is an interface with no implementing classes (that I can find).

Am I expected to implement it and define the functionality of commit()?
Or am I missing some larger concept?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T01:54:15+00:00Added an answer on June 12, 2026 at 1:54 am

    Found it in the source code:

    Assuming your instance of CuratorFramework is called “client”.

    if you perform an operation like…

    client.create().forPath("/foo");
    

    …it is not transactional. If you perform…

    client.inTransaction().create.forPath("/foo");
    

    …it is, but the operation will not actually be completed until you commit the transaction. This much I already knew. To commit the transaction, you do:

    client.inTransaction().create().forPath("/foo")
        .and().create().forPath("/bar")
        .and().commit();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to run multiple instances of apache on one single machine? How to
I am using apache web server as a load balancer for two tomcat instances
i use an apache to run my django instances. my apache doubles the django
We have many Apache instances all over our intranet. Some instances run on the
I am processing an xml file using apache.commons.digester The xml is, for instance, structured
I understand how to ban an IPs address from my apache webserver using .htaccess:
I have several instances of Liferay Portal (bundled with Apache Tomcat 5.5.x/6.x) and I
We have a simple Webapp running on two Tomcat instances behind Apache (a Tomcat
In building a module for Apache web server, I have encountered several instances where
I want to run multiple instances of the following script parallel: for($i = 0;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.