class

Task::Fetch::Thread

Inherits Task::Fetch::Fetcher < Task::ConcurrentTask < Task < Ktistec::Model::Polymorphic < Ktistec::Model::Common < Ktistec::Model < Reference < Object

Fetch a thread.

Constants

Log = ::Log.for(self)

Class methods

find_or_new(options)

Finds an existing task or instantiates a new task.

If thread (or subject_iri) is passed as an option, search for the root of the thread, and use that value. This ensures that new tasks always point at roots.

Source
find_or_new

Finds an existing task or instantiates a new task.

If thread (or subject_iri) is passed as an option, search for the root of the thread, and use that value. This ensures that new tasks always point at roots.

Source
merge_into(from, into)

Merges tasks.

Should be used in places where an object's thread property is changed. Ensures that only one task exists for a thread.

Source

Instance methods

_association_source

Identifies the actor following the thread.

Source
_association_thread

Identifies a thread.

This value may change as the thread is extended toward its root.

Source
_belongs_to_setter_for_source(source_ : ActivityPub::Actor, update_associations = true) : ActivityPub::Actor

Identifies the actor following the thread.

Source
after_save
Source
been_fetched
Source
been_fetched=(been_fetched : Set(String))
Source
best_root

Finds the best root object.

This will be the actual root object, if the root object has been fetched and is cached. Otherwise, it will be an object in the incomplete thread.

Source
follow?

Indicates whether a follow relationship exists for the thread.

Source
newly_discovered_objects
Source
newly_discovered_objects=(newly_discovered_objects : Set(ActivityPub::Object))
Source
path_to

Returns the path to the thread index page.

Source
perform(maximum = 100)

Fetches objects in the thread.

On each invocation, performs at most maximum (default 100) fetches/network requests for new objects.

Source
source(include_deleted : Bool = false, include_undone : Bool = false) : ActivityPub::Actor

Identifies the actor following the thread.

Source

Identifies the actor following the thread.

Source
source?(include_deleted : Bool = false, include_undone : Bool = false) : ActivityPub::Actor | Nil

Identifies the actor following the thread.

Source
state
Source
state=(state : State)
Source
thread

Identifies a thread.

This value may change as the thread is extended toward its root.

Source
thread=(thread : String) : String

Identifies a thread.

This value may change as the thread is extended toward its root.

Source

Nested types