aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/messagebus/acceptor.h
diff options
context:
space:
mode:
authornga <nga@yandex-team.ru>2022-02-10 16:48:09 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:09 +0300
commit1f553f46fb4f3c5eec631352cdd900a0709016af (patch)
treea231fba2c03b440becaea6c86a2702d0bfb0336e /library/cpp/messagebus/acceptor.h
parentc4de7efdedc25b49cbea74bd589eecb61b55b60a (diff)
downloadydb-1f553f46fb4f3c5eec631352cdd900a0709016af.tar.gz
Restoring authorship annotation for <nga@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/messagebus/acceptor.h')
-rw-r--r--library/cpp/messagebus/acceptor.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/library/cpp/messagebus/acceptor.h b/library/cpp/messagebus/acceptor.h
index 57cb010bf22..602381839ef 100644
--- a/library/cpp/messagebus/acceptor.h
+++ b/library/cpp/messagebus/acceptor.h
@@ -1,12 +1,12 @@
-#pragma once
-
+#pragma once
+
#include "acceptor_status.h"
#include "defs.h"
-#include "event_loop.h"
-#include "netaddr.h"
-#include "session_impl.h"
-#include "shutdown_state.h"
-
+#include "event_loop.h"
+#include "netaddr.h"
+#include "session_impl.h"
+#include "shutdown_state.h"
+
#include <library/cpp/messagebus/actor/actor.h>
#include <util/system/event.h>
@@ -18,43 +18,43 @@ namespace NBus {
private ::NActor::TActor<TAcceptor> {
friend struct TBusSessionImpl;
friend class ::NActor::TActor<TAcceptor>;
-
+
public:
TAcceptor(TBusSessionImpl* session, ui64 acceptorId, SOCKET socket, const TNetAddr& addr);
-
+
void HandleEvent(SOCKET socket, void* cookie) override;
-
+
void Shutdown();
-
+
inline ::NActor::TActor<TAcceptor>* GetActor() {
return this;
}
-
+
private:
void SendStatus(TInstant now);
void Act(::NActor::TDefaultTag);
-
+
private:
const ui64 AcceptorId;
-
+
TBusSessionImpl* const Session;
NEventLoop::TChannelPtr Channel;
-
+
TAcceptorStatus Stats;
-
+
TAtomicShutdownState ShutdownState;
-
+
struct TGranStatus {
TGranStatus(TDuration gran)
: Listen(gran)
{
}
-
+
TGranUp<TAcceptorStatus> Listen;
};
-
+
TGranStatus GranStatus;
- };
+ };
}
}