2020// BMQ
2121#include < bmqex_executionpolicy.h>
2222#include < bmqex_systemexecutor.h>
23- #include < bmqimp_initialconnectionchannelfactory .h>
23+ #include < bmqimp_connectionchannelfactory .h>
2424#include < bmqio_channelutil.h>
2525#include < bmqio_connectoptions.h>
2626#include < bmqio_status.h>
@@ -389,7 +389,7 @@ bmqt::GenericResult::Enum Application::startChannel()
389389 .setAttemptInterval (attemptInterval)
390390 .setAutoReconnect (true );
391391
392- d_initialConnectionChannelFactory .connect (
392+ d_connectionChannelFactory .connect (
393393 &status,
394394 &d_connectHandle_mp,
395395 options,
@@ -603,14 +603,13 @@ Application::Application(
603603 bdlf::PlaceHolders::_2), // handle
604604 allocator),
605605 allocator)
606- , d_initialConnectionChannelFactory(
607- InitialConnectionChannelFactoryConfig (
608- &d_statChannelFactory,
609- negotiationMessage,
610- sessionOptions.connectTimeout(),
611- sessionOptions.credentialProvider().get(),
612- d_blobSpPool_sp.get(),
613- allocator),
606+ , d_connectionChannelFactory(
607+ ConnectionChannelFactoryConfig (&d_statChannelFactory,
608+ negotiationMessage,
609+ sessionOptions.connectTimeout(),
610+ sessionOptions.credentialProvider().get(),
611+ d_blobSpPool_sp.get(),
612+ allocator),
614613 allocator)
615614, d_connectHandle_mp()
616615, d_brokerSession(&d_scheduler,
@@ -720,17 +719,16 @@ int Application::start(const bsls::TimeInterval& timeout)
720719 << " ::: START (SYNC) << [state: " << d_brokerSession.state ()
721720 << " ] :::" ;
722721
723- int rc = d_initialConnectionChannelFactory .start ();
722+ int rc = d_connectionChannelFactory .start ();
724723 if (rc != 0 ) {
725- BALL_LOG_ERROR << id ()
726- << " Failed to start initialConnectionChannelFactory "
724+ BALL_LOG_ERROR << id () << " Failed to start connectionChannelFactory "
727725 << " [rc: " << rc << " ]" ;
728726 return rc; // RETURN
729727 }
730728
731729 rc = d_brokerSession.start (timeout);
732730 if (rc != 0 ) {
733- d_initialConnectionChannelFactory .stop ();
731+ d_connectionChannelFactory .stop ();
734732 return rc; // RETURN
735733 }
736734
@@ -771,7 +769,7 @@ void Application::stop()
771769 d_brokerSession.stop ();
772770
773771 // Stop the channel factories
774- d_initialConnectionChannelFactory .stop ();
772+ d_connectionChannelFactory .stop ();
775773}
776774
777775void Application::stopAsync ()
@@ -791,9 +789,9 @@ Application::createMonitor(const bsl::shared_ptr<bmqio::Channel>& channel)
791789{
792790 int maxMissedHeartbeats = k_DEFAULT_MAX_MISSED_HEARTBEATS;
793791
794- channel->properties ().load (&maxMissedHeartbeats,
795- InitialConnectionChannelFactory::
796- k_CHANNEL_PROPERTY_MAX_MISSED_HEARTBEATS);
792+ channel->properties ().load (
793+ &maxMissedHeartbeats,
794+ ConnectionChannelFactory:: k_CHANNEL_PROPERTY_MAX_MISSED_HEARTBEATS);
797795
798796 bsl::shared_ptr<bmqp::HeartbeatMonitor> monitor (
799797 new (d_allocator) bmqp::HeartbeatMonitor (maxMissedHeartbeats),
@@ -814,9 +812,9 @@ void Application::startHeartbeat(
814812
815813 int heartbeatIntervalMs = k_DEFAULT_HEARTBEAT_INTERVAL_MS;
816814
817- channel->properties ().load (&heartbeatIntervalMs,
818- InitialConnectionChannelFactory::
819- k_CHANNEL_PROPERTY_HEARTBEAT_INTERVAL_MS);
815+ channel->properties ().load (
816+ &heartbeatIntervalMs,
817+ ConnectionChannelFactory:: k_CHANNEL_PROPERTY_HEARTBEAT_INTERVAL_MS);
820818
821819 bsls::TimeInterval interval;
822820 interval.addMilliseconds (heartbeatIntervalMs);
0 commit comments