Class MultiTransactionRecord

  • All Implemented Interfaces:
    java.lang.Iterable<Op>, Record

    public class MultiTransactionRecord
    extends java.lang.Object
    implements Record, java.lang.Iterable<Op>
    Encodes a composite transaction. In the wire format, each transaction consists of a single MultiHeader followed by the appropriate request. Each of these MultiHeaders has a type which indicates the type of the following transaction or a negative number if no more transactions are included.
    • Constructor Detail

      • MultiTransactionRecord

        public MultiTransactionRecord()
      • MultiTransactionRecord

        public MultiTransactionRecord​(java.lang.Iterable<Op> ops)
    • Method Detail

      • iterator

        public java.util.Iterator<Op> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<Op>
      • add

        public void add​(Op op)
      • size

        public int size()
      • serialize

        public void serialize​(OutputArchive archive,
                              java.lang.String tag)
                       throws java.io.IOException
        Specified by:
        serialize in interface Record
        Throws:
        java.io.IOException
      • deserialize

        public void deserialize​(InputArchive archive,
                                java.lang.String tag)
                         throws java.io.IOException
        Specified by:
        deserialize in interface Record
        Throws:
        java.io.IOException
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object