From ea78e609e03d3649e95ef7b773642d876dbdad6a Mon Sep 17 00:00:00 2001 From: Ashish Singh Date: Thu, 16 Nov 2023 01:15:10 -0800 Subject: [PATCH] [Link Event Damping] Add Abstract SelectEventHandler class to handle (#1312) 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