class Task::Fetch::Thread::State::Node
- Task::Fetch::Thread::State::Node
- Reference
- Object
Overview
A node in the prioritized queue.
Included Modules
- JSON::Serializable
Defined in:
models/task/fetch/thread.crConstructors
- .new(pull : JSON::PullParser)
- .new(id : Int64, last_attempt_at : Time = Time::UNIX_EPOCH, last_success_at : Time = Time::UNIX_EPOCH)
Instance Method Summary
-
#==(other : self)
Returns
true
if this reference is the same as other. - #delta
- #id : Int64
- #id=(id : Int64)
- #last_attempt_at : Time
- #last_attempt_at=(last_attempt_at : Time)
- #last_success_at : Time
- #last_success_at=(last_success_at : Time)
Constructor Detail
def self.new(id : Int64, last_attempt_at : Time = Time::UNIX_EPOCH, last_success_at : Time = Time::UNIX_EPOCH)
#
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.