Class TwoPhaseCommitSinkFunction.TransactionHolder<TXN>

  • Enclosing class:
    TwoPhaseCommitSinkFunction<IN,​TXN,​CONTEXT>

    @VisibleForTesting
    @Internal
    public static final class TwoPhaseCommitSinkFunction.TransactionHolder<TXN>
    extends Object
    Adds metadata (currently only the start time of the transaction) to the transaction object.
    • Constructor Detail

      • TransactionHolder

        @VisibleForTesting
        public TransactionHolder​(TXN handle,
                                 long transactionStartTime)
    • Method Detail

      • elapsedTime

        @VisibleForTesting
        public long elapsedTime​(Clock clock)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object