class Task::Fetch::Thread::State

Overview

Implements a prioritized queue of nodes on the thread horizon.

Included Modules

Defined in:

models/task/fetch/thread.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(nodes : Array(Task::Fetch::Thread::State::Node) = [] of Node) #

[View source]

Instance Method Detail

def <<(node : Node) #

[View source]
def cache : Array(String) | Nil #

Cached replies.


[View source]
def cache=(cache : Array(String) | Nil) #

Cached replies.


[View source]
def cached_object : Int64 | Nil #

Object for which replies are cached.


[View source]
def cached_object=(cached_object : Int64 | Nil) #

Object for which replies are cached.


[View source]
def failures : Int32 #

Count of successive failures to fetch new objects.


[View source]
def failures=(failures : Int32) #

Count of successive failures to fetch new objects.


[View source]
def includes?(node : Node) #

[View source]
def last_success_at #

[View source]
def nodes : Array(Node) #

[View source]
def nodes=(nodes : Array(Node)) #

[View source]
def prioritize! #

[View source]
def root_object : Int64 | Nil #

Root object of thread.


[View source]
def root_object=(root_object : Int64 | Nil) #

Root object of thread.


[View source]