aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/remote_connection.h
diff options
context:
space:
mode:
authorsomov <somov@yandex-team.ru>2022-02-10 16:45:47 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:47 +0300
commita5950576e397b1909261050b8c7da16db58f10b1 (patch)
tree7ba7677f6a4c3e19e2cefab34d16df2c8963b4d4 /library/cpp/messagebus/remote_connection.h
parent81eddc8c0b55990194e112b02d127b87d54164a9 (diff)
downloadydb-a5950576e397b1909261050b8c7da16db58f10b1.tar.gz
Restoring authorship annotation for <somov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/messagebus/remote_connection.h')
-rw-r--r--library/cpp/messagebus/remote_connection.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/library/cpp/messagebus/remote_connection.h b/library/cpp/messagebus/remote_connection.h
index 4538947368..ee0665774d 100644
--- a/library/cpp/messagebus/remote_connection.h
+++ b/library/cpp/messagebus/remote_connection.h
@@ -1,8 +1,8 @@
-#pragma once
-
+#pragma once
+
#include "async_result.h"
#include "defs.h"
-#include "event_loop.h"
+#include "event_loop.h"
#include "left_right_buffer.h"
#include "lfqueue_batch.h"
#include "message_ptr_and_header.h"
@@ -15,7 +15,7 @@
#include "ybus.h"
#include "misc/granup.h"
#include "misc/tokenquota.h"
-
+
#include <library/cpp/messagebus/actor/actor.h>
#include <library/cpp/messagebus/actor/executor.h>
#include <library/cpp/messagebus/actor/queue_for_actor.h>
@@ -96,7 +96,7 @@ namespace NBus {
void Shutdown(EMessageStatus status);
inline const TNetAddr& GetAddr() const noexcept;
-
+
private:
friend class TScheduleConnect;
friend class TWorkIO;
@@ -111,14 +111,14 @@ namespace NBus {
bool ReaderProcessBuffer();
bool ReaderFillBuffer();
void ReaderFlushMessages();
-
+
void ReadQuotaWakeup();
ui32 WriteWakeFlags() const;
-
+
virtual bool NeedInterruptRead() {
return false;
}
-
+
public:
virtual void TryConnect();
void ProcessItem(TReaderTag, ::NActor::TDefaultTag, TWriterToReaderSocketMessage);
@@ -174,7 +174,7 @@ namespace NBus {
void WriterErrorMessage(TNonDestroyingAutoPtr<TBusMessage> m, EMessageStatus status);
// takes ownership of ms
void WriterErrorMessages(const TArrayRef<TBusMessage*> ms, EMessageStatus status);
-
+
void FireClientConnectionEvent(TClientConnectionEvent::EType);
size_t GetInFlight();
@@ -207,14 +207,14 @@ namespace NBus {
NEventLoop::TChannelPtr Channel;
ui32 SocketVersion;
-
+
TRemoteConnectionWriterStatus Status;
TInstant StatusLastSendTime;
-
+
TLocalTasks TimeToRotateCounters;
TAtomic InFlight;
-
+
TTimedMessages SendQueue;
ui32 AwakeFlags;
EWriterState State;
@@ -290,5 +290,5 @@ namespace NBus {
typedef TIntrusivePtr<TRemoteConnection> TRemoteConnectionPtr;
- }
+ }
}