1. 20 8月, 2013 3 次提交
    • A
      Add reconnect logic to the relay's system session · 131b5de6
      Andy Wilkinson 提交于
      Upgrade to Reactor snapshot builds to take advantage of TcpClient's
      reconnect support that was added post-M1. Now, the system relay session
      will try every 5 seconds to establish a connection with the broker, both
      when first connecting and in the event of subsequently becoming
      disconnected.
      
      A more sophisticated reconnection policy, including back off and
      failover to different brokers, is possible with the Reactor API. We may
      want to enhance the relay's reconnection policy in the future.
      
      Typically, a broken connection is identified by the failure to forward
      a message to the broker. As things stand, the message id then discarded.
      Any further messages that are forwarded before the connection's been
      re-established are queued for forwarding once the CONNECTED frame's been
      received. We may want to consider also queueing the message that failed
      to send, however we would then need to consider the possibility of the
      message itself being what caused the broker to close the connection
      and resending it would simply cause the connection to be closed again.
      131b5de6
    • A
      Publish events about broker's availability · 8b48d8f4
      Andy Wilkinson 提交于
      Components that are using a StompBrokerRelayMessageHandler may want
      to know whether or not the broker's unavailable. If they're sending
      messages to the relay via an asynchronous channel there's currently
      no way for them to find this out.
      
      This commit enhances StompBrokerRelayMessageHandler to publish
      application events when the broker's availability changes:
      BrokerBecameAvailableEvent and BrokerBecameUnavailableEvent.
      Irrespective of the number of relay sessions only a single event is
      published for each change in the broker's availability.
      8b48d8f4
    • A
      Integration tests for the broker relay · be6dbe54
      Andy Wilkinson 提交于
      be6dbe54
  2. 14 8月, 2013 7 次提交
  3. 13 8月, 2013 3 次提交
  4. 12 8月, 2013 1 次提交
  5. 11 8月, 2013 1 次提交
  6. 09 8月, 2013 3 次提交
  7. 08 8月, 2013 6 次提交
  8. 07 8月, 2013 3 次提交
  9. 06 8月, 2013 9 次提交
  10. 03 8月, 2013 4 次提交