aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/storage.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/storage.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/storage.h')
-rw-r--r--library/cpp/messagebus/storage.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/messagebus/storage.h b/library/cpp/messagebus/storage.h
index 7d168844ed..3f8de480a1 100644
--- a/library/cpp/messagebus/storage.h
+++ b/library/cpp/messagebus/storage.h
@@ -1,5 +1,5 @@
-#pragma once
-
+#pragma once
+
#include "message_ptr_and_header.h"
#include "moved.h"
#include "ybus.h"
@@ -18,7 +18,7 @@ namespace NBus {
public:
TTimedMessages();
~TTimedMessages();
-
+
struct TItem {
THolder<TBusMessage> Message;
@@ -36,31 +36,31 @@ namespace NBus {
void Timeout(TInstant before, TMessagesPtrs* r);
void Clear(TMessagesPtrs* r);
-
+
private:
TItems Items;
};
-
+
class TSyncAckMessages : TNonCopyable {
public:
TSyncAckMessages();
~TSyncAckMessages();
-
+
void Push(TBusMessagePtrAndHeader& m);
TBusMessage* Pop(TBusKey id);
void Timeout(TInstant before, TMessagesPtrs* r);
void Clear(TMessagesPtrs* r);
-
+
size_t Size() const {
return KeyToMessage.size();
}
-
+
void RemoveAll(const TMessagesPtrs&);
-
+
void Gc();
-
+
void DumpState();
private: