enum

Logarithm::Retry::CircuitState

Inherits Enum < Comparable < Value < Object

Represents the current state of a circuit breaker.

The circuit breaker transitions between these states based on operation success/failure:

  • CLOSED: Normal operation, all requests pass through
  • OPEN: Failure threshold exceeded, requests fail fast
  • HALF_OPEN: Testing recovery, limited requests allowed

Constants

CLOSED = 0
OPEN = 1
HALF_OPEN = 2

Instance methods

closed?

Returns true if this enum value equals CLOSED

Source
half_open?

Returns true if this enum value equals HALF_OPEN

Source
open?

Returns true if this enum value equals OPEN

Source