struct Crabbit::ResourceEvent

Overview

Lifecycle notification delivered to an on_state_change callback.

resource is "producer" or "consumer"; cause is present when a failure initiated recovery.

Defined in:

crabbit/options.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(resource : String, stream : String, state : ResourceState, cause : Exception | Nil = nil) #

[View source]

Instance Method Detail

def cause : Exception | Nil #

def clone #

[View source]
def copy_with(resource _resource = @resource, stream _stream = @stream, state _state = @state, cause _cause = @cause) #

[View source]
def resource : String #

def state : ResourceState #

def stream : String #