diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:17 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:17 +0300 |
commit | d3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch) | |
tree | dd4bd3ca0f36b817e96812825ffaf10d645803f2 /library/cpp/messagebus/remote_client_session.h | |
parent | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff) | |
download | ydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/messagebus/remote_client_session.h')
-rw-r--r-- | library/cpp/messagebus/remote_client_session.h | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/library/cpp/messagebus/remote_client_session.h b/library/cpp/messagebus/remote_client_session.h index 7378fcb0bd..7160d0dae9 100644 --- a/library/cpp/messagebus/remote_client_session.h +++ b/library/cpp/messagebus/remote_client_session.h @@ -8,52 +8,52 @@ #ifdef _MSC_VER #pragma warning(push) -#pragma warning(disable : 4250) // 'NBus::NPrivate::TRemoteClientSession' : inherits 'NBus::NPrivate::TBusSessionImpl::NBus::NPrivate::TBusSessionImpl::GetConfig' via dominance +#pragma warning(disable : 4250) // 'NBus::NPrivate::TRemoteClientSession' : inherits 'NBus::NPrivate::TBusSessionImpl::NBus::NPrivate::TBusSessionImpl::GetConfig' via dominance #endif -namespace NBus { - namespace NPrivate { - using TRemoteClientSessionPtr = TIntrusivePtr<TRemoteClientSession>; +namespace NBus { + namespace NPrivate { + using TRemoteClientSessionPtr = TIntrusivePtr<TRemoteClientSession>; - class TRemoteClientSession: public TBusClientSession, public TBusSessionImpl { - friend class TRemoteClientConnection; - friend class TInvokeOnReply; + class TRemoteClientSession: public TBusClientSession, public TBusSessionImpl { + friend class TRemoteClientConnection; + friend class TInvokeOnReply; - public: - TObjectCounter<TRemoteClientSession> ObjectCounter; + public: + TObjectCounter<TRemoteClientSession> ObjectCounter; - TRemoteClientSessionSemaphore ClientRemoteInFlight; - IBusClientHandler* const ClientHandler; + TRemoteClientSessionSemaphore ClientRemoteInFlight; + IBusClientHandler* const ClientHandler; - public: - TRemoteClientSession(TBusMessageQueue* queue, TBusProtocol* proto, - IBusClientHandler* handler, - const TBusSessionConfig& config, const TString& name); + public: + TRemoteClientSession(TBusMessageQueue* queue, TBusProtocol* proto, + IBusClientHandler* handler, + const TBusSessionConfig& config, const TString& name); - ~TRemoteClientSession() override; + ~TRemoteClientSession() override; - void OnMessageReceived(TRemoteConnection* c, TVectorSwaps<TBusMessagePtrAndHeader>& newMsg) override; + void OnMessageReceived(TRemoteConnection* c, TVectorSwaps<TBusMessagePtrAndHeader>& newMsg) override; - EMessageStatus SendMessageImpl(TBusMessage* msg, const TNetAddr* addr, bool wait, bool oneWay); - EMessageStatus SendMessage(TBusMessage* msg, const TNetAddr* addr = nullptr, bool wait = false) override; - EMessageStatus SendMessageOneWay(TBusMessage* msg, const TNetAddr* addr = nullptr, bool wait = false) override; + EMessageStatus SendMessageImpl(TBusMessage* msg, const TNetAddr* addr, bool wait, bool oneWay); + EMessageStatus SendMessage(TBusMessage* msg, const TNetAddr* addr = nullptr, bool wait = false) override; + EMessageStatus SendMessageOneWay(TBusMessage* msg, const TNetAddr* addr = nullptr, bool wait = false) override; - int GetInFlight() const noexcept override; - void FillStatus() override; - void AcquireInFlight(TArrayRef<TBusMessage* const> messages); - void ReleaseInFlight(TArrayRef<TBusMessage* const> messages); - void ReleaseInFlightAndCallOnReply(TNonDestroyingAutoPtr<TBusMessage> request, TBusMessagePtrAndHeader& response); + int GetInFlight() const noexcept override; + void FillStatus() override; + void AcquireInFlight(TArrayRef<TBusMessage* const> messages); + void ReleaseInFlight(TArrayRef<TBusMessage* const> messages); + void ReleaseInFlightAndCallOnReply(TNonDestroyingAutoPtr<TBusMessage> request, TBusMessagePtrAndHeader& response); - EMessageStatus GetMessageDestination(TBusMessage* mess, const TNetAddr* addrp, TBusSocketAddr* dest); + EMessageStatus GetMessageDestination(TBusMessage* mess, const TNetAddr* addrp, TBusSocketAddr* dest); - void OpenConnection(const TNetAddr&) override; + void OpenConnection(const TNetAddr&) override; - TBusClientConnectionPtr GetConnection(const TNetAddr&) override; - }; + TBusClientConnectionPtr GetConnection(const TNetAddr&) override; + }; #ifdef _MSC_VER #pragma warning(pop) #endif - } -} + } +} |