Class: Falqon::Queue::Metadata

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/falqon/queue.rb

Overview

Queue metadata

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(processed: 0, failed: 0, retried: 0, created_at:, updated_at:, version:) ⇒ void

Parameters:

  • processed (Integer) (defaults to: 0)

    Total number of messages processed

  • failed (Integer) (defaults to: 0)

    Total number of messages failed

  • retried (Integer) (defaults to: 0)

    Total number of messages retried

  • created_at (Integer)

    Timestamp of creation

  • updated_at (Integer)

    Timestamp of last update

  • version (Integer)

    Protocol version



# File ''

prop :processed, Integer, default: 0
prop :failed, Integer, default: 0
prop :retried, Integer, default: 0
prop :created_at, Integer
prop :updated_at, Integer
prop :version, Integer

Instance Attribute Details

#created_atInteger

Timestamp of creation

Returns:

  • (Integer)


# File ''

prop :created_at, Integer

#failedInteger

Total number of messages failed

Returns:

  • (Integer)


# File ''

prop :failed, Integer, default: 0

#processedInteger

Total number of messages processed

Returns:

  • (Integer)


# File ''

prop :processed, Integer, default: 0

#retriedInteger

Total number of messages retried

Returns:

  • (Integer)


# File ''

prop :retried, Integer, default: 0

#updated_atInteger

Timestamp of last update

Returns:

  • (Integer)


# File ''

prop :updated_at, Integer

#versionInteger

Protocol version

Returns:

  • (Integer)


# File ''

prop :version, Integer