Exception: Stomp::Error::ProducerFlowControlException
- Inherits:
-
BrokerException
- Object
- RuntimeError
- StompException
- BrokerException
- Stomp::Error::ProducerFlowControlException
- Defined in:
- lib/stomp/errors.rb
Instance Attribute Summary collapse
-
#dest_name ⇒ Object
readonly
Returns the value of attribute dest_name.
-
#producer_id ⇒ Object
readonly
Returns the value of attribute producer_id.
Attributes inherited from BrokerException
#broker_backtrace, #headers, #message, #receipt_id
Instance Method Summary collapse
-
#initialize(message) ⇒ ProducerFlowControlException
constructor
A new instance of ProducerFlowControlException.
Constructor Details
#initialize(message) ⇒ ProducerFlowControlException
Returns a new instance of ProducerFlowControlException.
293 294 295 296 297 298 299 |
# File 'lib/stomp/errors.rb', line 293 def initialize() super() msg_headers = /.*producer\s+\((.*)\).*to\s+prevent\s+flooding\s+([^\s]*)\.\s+/i.match(@message) @producer_id = msg_headers && msg_headers[1] @dest_name = msg_headers && msg_headers[2] end |
Instance Attribute Details
#dest_name ⇒ Object (readonly)
Returns the value of attribute dest_name.
291 292 293 |
# File 'lib/stomp/errors.rb', line 291 def dest_name @dest_name end |
#producer_id ⇒ Object (readonly)
Returns the value of attribute producer_id.
291 292 293 |
# File 'lib/stomp/errors.rb', line 291 def producer_id @producer_id end |