nfd::rib::ReadvertisePolicy Class Referenceabstract

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

#include <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 ndn::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

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

Member Function Documentation

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::ClientToNlsrReadvertisePolicy.

virtual ndn::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::ClientToNlsrReadvertisePolicy.