Class Commit

  • All Implemented Interfaces:
    java.io.Serializable

    public class Commit
    extends java.lang.Object
    implements java.io.Serializable
    A commit request sent in case there are multiple output attributes written in a transaction. When there is only single attribute, the output is written directly to target commit-log.
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Commit.TransactionUpdate
      An update to transactional attribute of a transaction.
    • Constructor Summary

      Constructors 
      Constructor Description
      Commit()  
    • Constructor Detail

      • Commit

        public Commit()
    • Method Detail

      • outputs

        public static Commit outputs​(java.util.Collection<Commit.TransactionUpdate> transactionUpdates,
                                     java.util.Collection<StreamElement> outputs)
        Create new Commit message to be appended to _transcation.commit
        Parameters:
        outputs - updates to write
        Returns:
        the commit
      • updates

        public static Commit updates​(java.util.Collection<Commit.TransactionUpdate> transactionUpdates)
        Create new Commit message to be appended to _transcation.commit
        Parameters:
        transactionUpdates - Updates to transactional attributes.