From 764ec3836a5cc132464ceef3b8e3d73473fd81ce Mon Sep 17 00:00:00 2001 From: Ashish Singh Date: Tue, 24 Oct 2023 14:37:49 -0700 Subject: [PATCH] [Link Event Damping] Add Abstract SelectEventHandler class to handle link event damping timer events. - Handler in the class will be used to handle the timer event of link event dampers. HLD: sonic-net/SONiC#1071 --- syncd/SelectableEventHandler.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 syncd/SelectableEventHandler.h diff --git a/syncd/SelectableEventHandler.h b/syncd/SelectableEventHandler.h new file mode 100644 index 000000000..6e49e6705 --- /dev/null +++ b/syncd/SelectableEventHandler.h @@ -0,0 +1,19 @@ +#pragma once + +namespace syncd +{ + // This class implements handler for Selectable events. + class SelectableEventHandler + { + public: + + virtual ~SelectableEventHandler() = default; + + virtual void handleSelectableEvent() = 0; + + protected: + + SelectableEventHandler() = default; + }; + +} // namespace syncd