Class: OnStomp::Failover::URI::FAILOVER

Inherits:
Components::URI::STOMP show all
Defined in:
lib/onstomp/failover/uri.rb

Overview

A URI class for representing URIs with a ‘failover’ scheme.

Constant Summary collapse

FAILOVER_OPAQUE_REG =

Matches the internal URIs and query contained in the opaque part of a failover: URI

/^\(([^\)]+)\)(?:\?(.*))?/

Constants inherited from Components::URI::STOMP

Components::URI::STOMP::DEFAULT_PORT

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Components::URI::STOMP

#onstomp_socket_type, #open

Constructor Details

#initialize(*args) ⇒ FAILOVER

Returns a new instance of FAILOVER.



12
13
14
15
# File 'lib/onstomp/failover/uri.rb', line 12

def initialize(*args)
  super
  _split_opaque_
end

Instance Attribute Details

#failover_urisObject (readonly)

Returns the value of attribute failover_uris.



11
12
13
# File 'lib/onstomp/failover/uri.rb', line 11

def failover_uris
  @failover_uris
end