Skip to content

Commit

Permalink
[Link Event Damping] Add Abstract SelectEventHandler class to handle
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Ashish Singh committed Oct 24, 2023
1 parent 1ef16ee commit c4df0f4
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions syncd/SelectableEventHandler.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#pragma once

#include "swss/logger.h"
#include "swss/sal.h"

namespace syncd
{

// This class implements handler for Selectable events.
class SelectableEventHandler {
public:

virtual ~SelectableEventHandler()
{
SWSS_LOG_ENTER();
}

virtual void handleSelectableEvent() = 0;

protected:

SelectableEventHandler()
{
SWSS_LOG_ENTER();
}
};

} // namespace syncd

0 comments on commit c4df0f4

Please sign in to comment.