struct

Crabbit::ResourceEvent

Inherits Struct < Value < Object

Lifecycle notification delivered to an on_state_change callback.

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

Constructors

new(resource : String, stream : String, state : ResourceState, cause : Exception | Nil = nil)
Source

Instance methods

cause
clone
Source
copy_with(resource _resource = @resource, stream _stream = @stream, state _state = @state, cause _cause = @cause)
Source
resource
state
stream