Class: Journaled::KinesisFailedEvent
- Inherits:
-
Struct
- Object
- Struct
- Journaled::KinesisFailedEvent
- Defined in:
- lib/journaled/kinesis_failed_event.rb
Overview
Represents a failed event from Kinesis send operations
Used by both KinesisBatchSender and KinesisSequentialSender to represent events that failed to send to Kinesis, along with error details and whether the failure is transient (retriable) or permanent.
Instance Attribute Summary collapse
-
#error_code ⇒ Object
Returns the value of attribute error_code.
-
#error_message ⇒ Object
Returns the value of attribute error_message.
-
#event ⇒ Object
Returns the value of attribute event.
-
#transient ⇒ Object
Returns the value of attribute transient.
Instance Method Summary collapse
Instance Attribute Details
#error_code ⇒ Object
Returns the value of attribute error_code
9 10 11 |
# File 'lib/journaled/kinesis_failed_event.rb', line 9 def error_code @error_code end |
#error_message ⇒ Object
Returns the value of attribute error_message
9 10 11 |
# File 'lib/journaled/kinesis_failed_event.rb', line 9 def end |
#event ⇒ Object
Returns the value of attribute event
9 10 11 |
# File 'lib/journaled/kinesis_failed_event.rb', line 9 def event @event end |
#transient ⇒ Object
Returns the value of attribute transient
9 10 11 |
# File 'lib/journaled/kinesis_failed_event.rb', line 9 def transient @transient end |
Instance Method Details
#permanent? ⇒ Boolean
14 15 16 |
# File 'lib/journaled/kinesis_failed_event.rb', line 14 def permanent? !transient end |
#transient? ⇒ Boolean
10 11 12 |
# File 'lib/journaled/kinesis_failed_event.rb', line 10 def transient? transient end |