class PlaceOS::Driver::Queue

Defined in:

placeos-driver/queue.cr

Instance Method Summary

Instance Method Detail

def add(priority = @priority, timeout = @timeout, retries = @retries, wait = @wait, name = nil, delay = @delay, clear_queue = false, &callback : Task -> Nil) #

adds a task callback to the queue


[View source]
def clear(abort_current = false) #

removes all jobs currently in the queue


[View source]
def current : Task | Nil #

[View source]
def delay : Time::Span | Nil #

[View source]
def delay=(delay : Time::Span | Nil) #

[View source]
def logger : ::Log #

[View source]
def online : Bool #

[View source]
def online=(state : Bool) #

[View source]
def previous : Task | Nil #

[View source]
def priority : Int32 #

for modifying defaults


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

for modifying defaults


[View source]
def retries : Int32 #

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

[View source]
def retry_bonus : Int32 #

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

[View source]
def set_connected(state) #

A helper method for setting the connected state, without effecting queue processing. UDP device not responding, incorrect login etc


[View source]
def terminated : Bool #

[View source]
def timeout : Time::Span #

[View source]
def timeout=(timeout : Time::Span) #

[View source]
def wait : Bool #

[View source]
def wait=(wait : Bool) #

[View source]