Class: Sbmt::Outbox::OutboxItem

Inherits:
BaseItem
  • Object
show all
Defined in:
app/models/sbmt/outbox/outbox_item.rb

Constant Summary collapse

IDEMPOTENCY_HEADER_NAME =
"Idempotency-Key"
SEQUENCE_HEADER_NAME =
"Sequence-ID"
EVENT_TIME_HEADER_NAME =
"Created-At"
OUTBOX_HEADER_NAME =
"Outbox-Name"
DISPATCH_TIME_HEADER_NAME =
"Dispatched-At"

Class Method Summary collapse

Methods inherited from BaseItem

#add_error, box_id, box_name, bucket_partitions, calc_bucket_partitions, config, #for_processing?, #increment_errors_counter, #log_details, #max_retries_exceeded?, #options, #partition, partition_buckets, #payload, #payload=, #payload_builder, #proto_payload, #proto_payload=, #retriable?, #touch_processed_at, #transports

Class Method Details

.box_typeObject



17
18
19
# File 'app/models/sbmt/outbox/outbox_item.rb', line 17

def box_type
  :outbox
end

.lookup_configObject



21
22
23
# File 'app/models/sbmt/outbox/outbox_item.rb', line 21

def lookup_config
  Sbmt::Outbox::OutboxItemConfig
end