Interface Transaction

    • Method Detail

      • getProtocolData

        Object getProtocolData()
      • setProtocolData

        void setProtocolData​(Object data)
        Protocol managers can use this field to store any object needed. An example would be the Session used by the transaction on openwire
      • isEffective

        boolean isEffective()
      • tryRollback

        boolean tryRollback()
        In a ServerSession failure scenario,\ we may try to rollback, however only if it's not prepared. In case it's prepared, we will just let it be and let the transaction manager to deal with it
      • getID

        long getID()
      • getXid

        Xid getXid()
      • suspend

        void suspend()
      • resume

        void resume()
      • getCreateTime

        long getCreateTime()
      • afterStore

        void afterStore​(TransactionOperation sync)
        This is an operation that will be called right after the storage is completed. addOperation could only happen after paging and replication, while these operations will just be about the storage
      • hasTimedOut

        boolean hasTimedOut​(long currentTime,
                            int defaultTimeout)
      • hasTimedOut

        boolean hasTimedOut()
        To validate if the Transaction had previously timed out. This is to check the reason why a TX has been rolled back.
      • putProperty

        void putProperty​(int index,
                         Object property)
      • getProperty

        Object getProperty​(int index)
      • isContainsPersistent

        boolean isContainsPersistent()
      • setContainsPersistent

        void setContainsPersistent()
      • setTimeout

        void setTimeout​(int timeout)