Exception: Stomp::Error::ProducerFlowControlException

Inherits:
BrokerException show all
Defined in:
lib/stomp/errors.rb

Instance Attribute Summary collapse

Attributes inherited from BrokerException

#broker_backtrace, #headers, #message, #receipt_id

Instance Method Summary collapse

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(message)
  super(message)
  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_nameObject (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_idObject (readonly)

Returns the value of attribute producer_id


291
292
293
# File 'lib/stomp/errors.rb', line 291

def producer_id
  @producer_id
end