Class: Conflow::Promise

Inherits:
Redis::Field show all
Includes:
Redis::Identifier, Redis::Model
Defined in:
lib/conflow/promise.rb

Overview

Promises are stubs for returned values from jobs. They will be resolved once the job is done.

Instance Attribute Summary collapse

Attributes included from Redis::Identifier

#id

Method Summary

Methods included from Redis::Identifier

included, #initialize

Methods included from Redis::Model

#==, #assign_attributes, #destroy!, included

Methods inherited from Redis::Field

#initialize

Instance Attribute Details

#hash_fieldConflow::Redis::ValueField

Redis field name in the result hash

Returns:



20
# File 'lib/conflow/promise.rb', line 20

field :hash_field, :raw_value

#job_idConflow::Redis::ValueField

ID of the job that promised result

Returns:



12
# File 'lib/conflow/promise.rb', line 12

field :job_id,     :raw_value

#keyConflow::Redis::ValueField

Key of job’s result which is promised

Returns:



16
# File 'lib/conflow/promise.rb', line 16

field :result_key, :raw_value