enum

Crabbit::ResourceState

Inherits Enum < Comparable < Value < Object

Lifecycle state of a Producer or Consumer.

Constants

Open = 0

The resource is connected and usable.

Recovering = 1

The resource is reconnecting and redeclaring its protocol entity.

Closed = 2

The resource was permanently closed by the application.

Instance methods

closed?

Returns true if this enum value equals Closed

Source
open?

Returns true if this enum value equals Open

Source
recovering?

Returns true if this enum value equals Recovering

Source