abstract class PlaceOS::Resource(T)

Overview

Internally abstracts data event streams.

Defined in:

placeos-resource.cr

Constant Summary

Log = ::Log.for(self)

Constructors

Instance Method Summary

Constructor Detail

def self.new(processed_buffer_size : Int32 = 64, channel_buffer_size : Int32 = 64) #

[View source]

Instance Method Detail

def errors : Array(Error) #

Errors generated while processing resources Mainly for inspection while testing.


[View source]
def on_reconnect #

Callback called when changefeed is reconnected


[View source]
abstract def process_resource(action : Action, resource : T) : Result #

[View source]
def processed : Deque(Event(T)) #

Buffer of recently processed elements

NOTE rw lock?


[View source]
def start : self #

[View source]
def startup_finished? : Bool #

Expose the status of whether the initial load of resources has completed.


[View source]
def stop : self #

[View source]