Class Transaction


  • public class Transaction
    extends Object
    The transfer of EDUs and PDUs between homeservers is performed by an exchange of Transaction messages, which are encoded as JSON objects, passed over an HTTP PUT request. A Transaction is meaningful only to the pair of homeservers that exchanged it; they are not globally-meaningful.
    Each transaction has:
    • An opaque transaction ID, unique among transactions from the same origin.
    • A timestamp (UNIX epoch time in milliseconds) generated by its origin server.
    • An origin and destination server name.
    • A list of PDUs and EDUs - the actual message payload that the Transaction carries.
    • Field Detail

      • origin

        private String origin
        Required. server_name of homeserver sending this transaction.
      • originServerTs

        private Long originServerTs
        Required. Timestamp in milliseconds on originating homeserver when this transaction started.
      • edus

        private List<EphemeralDataUnit> edus
        List of ephemeral messages. May be omitted if there are no ephemeral messages to be sent.
    • Constructor Detail

      • Transaction

        public Transaction()