Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: connect on demand #234

Open
wants to merge 6 commits into
base: next
Choose a base branch
from

Conversation

tomasz-blasz
Copy link
Contributor

Removes the need for the application to connect to the endpoint before using Firebolt, in other words, Firebolt will connect when necessary, on the first request. Also, if a disconnection occurs, Firebolt will try to reconnect when needed.

If the application stops using Firebolt::IFireboltAccessor::Instance().Connect(), it is not be notified about connection changes because connection change listener is provided in Connect(). To avoid that and allows the application to be notified and check status of connection, the following methods have been introduced:

  • RegisterConnectionChangeListener() & UnregisterConnectionChangeListener()
  • IsConnected()

Other fixes:

  • If build step fails, build script exits with an error
  • Log traces stop coloring on EOL
  • Firebolt::IFireboltAccessor::Instance(): the instance in kept in a single variable: _singleton, additional one instance has been removed

@tomasz-blasz tomasz-blasz force-pushed the feature/connect-on-demand branch from 63787c2 to 1e4cdec Compare December 6, 2024 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants