Class CommitTransactionOperation

    • Constructor Detail

      • CommitTransactionOperation

        public CommitTransactionOperation(WriteConcern writeConcern)
        Deprecated.
        Construct an instance.
        Parameters:
        writeConcern - the write concern
      • CommitTransactionOperation

        public CommitTransactionOperation(WriteConcern writeConcern,
                                          boolean alreadyCommitted)
        Deprecated.
        Construct an instance.
        Parameters:
        writeConcern - the write concern
        alreadyCommitted - if the transaction has already been committed.
        Since:
        3.11
    • Method Detail

      • recoveryToken

        public CommitTransactionOperation recoveryToken(BsonDocument recoveryToken)
        Deprecated.
        Set the recovery token.
        Parameters:
        recoveryToken - the recovery token
        Returns:
        the CommitTransactionOperation
        Since:
        3.11
      • maxCommitTime

        public CommitTransactionOperation maxCommitTime(@Nullable
                                                        Long maxCommitTime,
                                                        TimeUnit timeUnit)
        Deprecated.
        Sets the maximum execution time on the server for the commitTransaction operation.
        Parameters:
        maxCommitTime - the max commit time, which must be either null or greater than zero, in the given time unit
        timeUnit - the time unit, which may not be null
        Returns:
        this
        Since:
        3.11
        Since server release
        4.2
      • getMaxCommitTime

        @Nullable
        public Long getMaxCommitTime(TimeUnit timeUnit)
        Deprecated.
        Gets the maximum amount of time to allow a single commitTransaction command to execute. The default is 0, which places no limit on the execution time.
        Parameters:
        timeUnit - the time unit to return the result in
        Returns:
        the maximum execution time in the given time unit
        Since:
        3.11
        Since server release
        4.2