Class TxAbort


  • public class TxAbort
    extends Object
    A tx_abort message which signals the cancellation of an in-progress transaction negotiation.
    • Method Detail

      • get_channel_id

        public byte[] get_channel_id()
        The channel ID
      • set_channel_id

        public void set_channel_id​(byte[] val)
        The channel ID
      • get_data

        public byte[] get_data()
        Message data Returns a copy of the field.
      • set_data

        public void set_data​(byte[] val)
        Message data
      • of

        public static TxAbort of​(byte[] channel_id_arg,
                                 byte[] data_arg)
        Constructs a new TxAbort given each field
      • clone

        public TxAbort clone()
        Creates a copy of the TxAbort
        Overrides:
        clone in class Object
      • eq

        public boolean eq​(TxAbort b)
        Checks if two TxAborts contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields. Two objects with NULL inner values will be considered "equal" here.
      • write

        public byte[] write()
        Serialize the TxAbort object into a byte array which can be read by TxAbort_read