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)


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

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)


306
307
308
# File 'lib/couchbase/management/query_index_manager.rb', line 306

def collection_name
  @collection_name
end

#scope_nameString?

Returns:

  • (String, nil)


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

def scope_name
  @scope_name
end

#watch_primaryBoolean

Returns:

  • (Boolean)


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

def watch_primary
  @watch_primary
end