Class: Velocity::Instance::CollectionBroker

Inherits:
APIModel
  • Object
show all
Defined in:
lib/acceleration/velocity.rb

Overview

CollectionBroker models an instance’s collection broker, which can start and stop collections on demand. It’s especially useful for when an instance has tens or hundreds of collections which cannot be simultaneously held in memory.

TODO: implement

Instance Attribute Summary

Attributes inherited from APIModel

#instance

Instance Method Summary collapse

Methods inherited from APIModel

#method_missing, #resolve, #respond_to_missing?

Constructor Details

#initializeCollectionBroker

Create a new wrapper for the collection broker functions.

Raises:

  • (NotImplementedError)


512
513
514
# File 'lib/acceleration/velocity.rb', line 512

def initialize
  raise NotImplementedError
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Velocity::Instance::APIModel

Instance Method Details

#prefixObject

The CollectionBroker prefix is collection-broker.



505
506
507
# File 'lib/acceleration/velocity.rb', line 505

def prefix
  'collection-broker'
end