Class CuratorTransaction

  • All Implemented Interfaces:
    com.yahoo.transaction.Transaction, java.lang.AutoCloseable

    public class CuratorTransaction
    extends com.yahoo.transaction.AbstractTransaction
    Transaction implementation against ZooKeeper.
    Author:
    Ulf Lilleengen
    • Constructor Detail

      • CuratorTransaction

        public CuratorTransaction​(Curator curator)
    • Method Detail

      • prepare

        public void prepare()
      • commit

        public void commit()
        Commits this transaction. If it is not already prepared this will prepare it first
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object