Add support for reconnection when connection is abruptly closed

Description

Allow to:

1) Indicate in the connection configuration if a reconnection should be attempted when connection is abruptly closed
2) Keep the listeners of the xmppconnection when reconnecting
3) Allow to manually close the connection and be able to connect again (listeners will be removed)
4) Reconnection logic will keep trying to connect forever. Different delays will be used as new attempts to connect keep failing.
5) Users should be able to cancel the reconnection process

Environment

None

Acceptance Test - Entry

None
Fixed

Assignee

Francisco Vives

Reporter

Gaston Dombiak

Labels

None

Expected Effort

None

Ignite Forum URL

None

Components

Fix versions

Affects versions

Priority

Major
Configure