abstract class Mosquito::Backend

Direct Known Subclasses

Defined in:

mosquito/backend.cr

Constant Summary

KEY_PREFIX = {"mosquito"}
QUEUES = ["waiting", "scheduled", "pending", "dead"] of ::String

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(name : String | Symbol) #

[View source]

Class Method Detail

def self.build_key(*parts) #

[View source]
def self.named(name) #

[View source]
def self.search_queues #

[View source]

Instance Method Detail

def build_key(*parts) #

[View source]
def dead_q #

[View source]
def delete(key : String, in ttl = 0) : Nil #

[View source]
abstract def dequeue : JobRun | Nil #

[View source]
abstract def deschedule : Array(JobRun) #

[View source]
abstract def dump_dead_q : Array(String) #

[View source]
abstract def dump_pending_q : Array(String) #

[View source]
abstract def dump_scheduled_q : Array(String) #

[View source]
abstract def dump_waiting_q : Array(String) #

[View source]
abstract def enqueue(job_run : JobRun) : JobRun #

from queue.cr


[View source]
def expires_in(key : String) : Int64 #

[View source]
abstract def finish(job_run : JobRun) #

[View source]
abstract def flush : Nil #

[View source]
def pending_q #

[View source]
def retrieve(key : String) : Hash(String, String) #

[View source]
abstract def schedule(job_run : JobRun, at scheduled_time : Time) : JobRun #

[View source]
abstract def scheduled_job_run_time(job_run : JobRun) : String | Nil #

[View source]
def scheduled_q #

[View source]
abstract def size(include_dead : Bool = true) : Int64 #

[View source]
def store(key : String, value : Hash(String, String)) : Nil #

[View source]
abstract def terminate(job_run : JobRun) #

[View source]
def waiting_q #

[View source]