Class: Couchbase::Management::Options::Query::WatchIndexes

Inherits:
Options::Base
  • Object
show all
Defined in:
lib/couchbase/management/query_index_manager.rb

Overview

Instance Attribute Summary collapse

Attributes inherited from Options::Base

#client_context, #parent_span, #retry_strategy, #timeout

Instance Method Summary collapse

Constructor Details

#initialize(watch_primary: false, scope_name: nil, collection_name: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|self| ... } ⇒ WatchIndexes

Creates an instance of options for QueryIndexManager#watch_indexes

Parameters:

  • watch_primary (Boolean) (defaults to: false)

    whether or not to watch the primary index

  • scope_name (String, nil) (defaults to: nil)

    the name of the scope

  • collection_name (String, nil) (defaults to: nil)

    the name of the collection

  • retry_strategy (Proc, nil) (defaults to: nil)

    the custom retry strategy, if set

  • client_context (Hash, nil) (defaults to: nil)

    the client context data, if set

  • parent_span (Span, nil) (defaults to: nil)

    if set holds the parent span, that should be used for this request

Yield Parameters:

  • self (GetAllScopes)


317
318
319
320
321
322
323
324
325
326
327
328
# File 'lib/couchbase/management/query_index_manager.rb', line 317

def initialize(watch_primary: false,
               scope_name: nil,
               collection_name: nil,
               retry_strategy: nil,
               client_context: nil,
               parent_span: nil)
  super(timeout: nil, retry_strategy: retry_strategy, client_context: client_context, parent_span: parent_span)
  @watch_primary = watch_primary
  @scope_name = scope_name
  @collection_name = collection_name
  yield self if block_given?
end

Instance Attribute Details

#collection_nameString?

Returns:

  • (String, nil)


304
305
306
# File 'lib/couchbase/management/query_index_manager.rb', line 304

def collection_name
  @collection_name
end

#scope_nameString?

Returns:

  • (String, nil)


303
304
305
# File 'lib/couchbase/management/query_index_manager.rb', line 303

def scope_name
  @scope_name
end

#watch_primaryBoolean

Returns:

  • (Boolean)


302
303
304
# File 'lib/couchbase/management/query_index_manager.rb', line 302

def watch_primary
  @watch_primary
end