Class: Promiscuous::Publisher::Operation::Ephemeral

Inherits:
Atomic
  • Object
show all
Defined in:
lib/promiscuous/publisher/operation/ephemeral.rb

Instance Attribute Summary

Attributes inherited from Atomic

#instance

Attributes inherited from Base

#operation

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Atomic

#acquire_op_lock, #do_database_query, #execute_instrumented, #fetch_instance, #increment_version_in_document, #initialize, #operation_payloads, #query_dependencies, #recoverable_failure?, #reload_instance, #use_id_selector

Methods inherited from Base

_acquire_lock, #acquire_op_lock, #dependencies_for, #dependency_for_op_lock, #ensure_op_still_locked, #execute_instrumented, #explain_operation, #generate_payload, #get_new_op_lock, #increment_dependencies, #initialize, lock_options, #on_rabbitmq_confirm, #operation_payloads, #payload_for, #publish_payload_in_rabbitmq_async, #publish_payload_in_redis, #query_dependencies, rabbitmq_staging_set_key, #record_timestamp, #recover_db_operation, recover_locks, recover_operation_from_lock, recover_payloads_for_rabbitmq, #recovering?, #recovery_payload, register_recovery_mechanism, #release_op_lock, run_recovery_mechanisms, #should_instrument_query?, #trace_operation, #write_dependencies

Constructor Details

This class inherits a constructor from Promiscuous::Publisher::Operation::Atomic

Class Method Details

.recover_operation(*recovery_payload) ⇒ Object



10
11
12
13
# File 'lib/promiscuous/publisher/operation/ephemeral.rb', line 10

def self.recover_operation(*recovery_payload)
  # no instance when we recover, it's okay
  new(:instance => nil)
end

Instance Method Details

#executeObject



2
3
4
# File 'lib/promiscuous/publisher/operation/ephemeral.rb', line 2

def execute
  super {}
end

#yell_about_missing_instanceObject



6
7
8
# File 'lib/promiscuous/publisher/operation/ephemeral.rb', line 6

def yell_about_missing_instance
  # don't yell :)
end