nfd::rib::ReadvertisePolicy Class Referenceabstract

A policy to decide whether to readvertise a route, and what prefix to readvertise. More...

#include <daemon/rib/readvertise/readvertise-policy.hpp>

+ Inheritance diagram for nfd::rib::ReadvertisePolicy:
+ Collaboration diagram for nfd::rib::ReadvertisePolicy:

Public Member Functions

virtual ~ReadvertisePolicy ()=default
 
virtual time::milliseconds getRefreshInterval () const =0
 
virtual std::optional< ReadvertiseActionhandleNewRoute (const RibRouteRef &ribRoute) const =0
 Decide whether to readvertise a route, and what prefix to readvertise. More...
 

Detailed Description

A policy to decide whether to readvertise a route, and what prefix to readvertise.

Definition at line 45 of file readvertise-policy.hpp.

Constructor & Destructor Documentation

◆ ~ReadvertisePolicy()

virtual nfd::rib::ReadvertisePolicy::~ReadvertisePolicy ( )
virtualdefault

Member Function Documentation

◆ getRefreshInterval()

virtual time::milliseconds nfd::rib::ReadvertisePolicy::getRefreshInterval ( ) const
pure virtual
Returns
how often readvertisements made by this policy should be refreshed.

Implemented in nfd::rib::HostToGatewayReadvertisePolicy, and nfd::rib::ClientToNlsrReadvertisePolicy.

◆ handleNewRoute()

virtual std::optional<ReadvertiseAction> nfd::rib::ReadvertisePolicy::handleNewRoute ( const RibRouteRef ribRoute) const
pure virtual

Decide whether to readvertise a route, and what prefix to readvertise.

Implemented in nfd::rib::HostToGatewayReadvertisePolicy, and nfd::rib::ClientToNlsrReadvertisePolicy.