Resilient
Public Member Functions | List of all members
resilient::ICircuitbreakerStrategy Class Referenceabstract

Interface to specify the algorithm the Circuitbreaker should use. More...

#include <circuitbreaker.hpp>

Inheritance diagram for resilient::ICircuitbreakerStrategy:
[legend]

Public Member Functions

virtual bool allowCall ()=0
 Check whether the next call should be execute or should short circuit to failure. More...
 
virtual void registerFailure ()=0
 Notify the algorithm that an execution resulted in failure.
 
virtual void registerSuccess ()=0
 Notify the algorithm that an execution resulted in success.
 

Detailed Description

Interface to specify the algorithm the Circuitbreaker should use.

Member Function Documentation

virtual bool resilient::ICircuitbreakerStrategy::allowCall ( )
pure virtual

Check whether the next call should be execute or should short circuit to failure.

Returns
true Execute the task.
false Return failure instead of executing the task.

Implemented in resilient::CountStrategy< Clock >.


The documentation for this class was generated from the following file: