Sha256: 415c50679b2548b3660d8bec787e662c2e14a8d01cc9ab3540366439fd8c088e

Contents?: true

Size: 1.27 KB

Versions: 4

Compression:

Stored size: 1.27 KB

Contents

#    Copyright 2020 Couchbase, Inc.
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.

module Couchbase
  class MutationToken
    # @return [Integer]
    attr_accessor :partition_id
    # @return [Integer]
    attr_accessor :partition_uuid
    # @return [Integer]
    attr_accessor :sequence_number
    # @return [String] name of the bucket
    attr_accessor :bucket_name
  end

  class MutationState
    # Create a mutation state from one or more MutationTokens
    #
    # @param [Array<MutationToken>] mutation_tokens the mutation tokens
    def initialize(*mutation_tokens) end

    # Add one or more Mutation tokens to this state
    #
    # @param [Array<MutationToken>] mutation_tokens the mutation tokens
    def add(*mutation_tokens)
      @tokens |= mutation_tokens
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
couchbase-3.0.0.alpha.1-x86_64-linux lib/couchbase/mutation_state.rb
couchbase-3.0.0.alpha.1-x86_64-darwin-19 lib/couchbase/mutation_state.rb
couchbase-3.0.0.alpha.1-universal-darwin-19 lib/couchbase/mutation_state.rb
couchbase-3.0.0.alpha.1 lib/couchbase/mutation_state.rb