OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FlowTokenPool Class Reference

#include <flow_token.h>

Inheritance diagram for FlowTokenPool:
Collaboration diagram for FlowTokenPool:

Public Member Functions

 FlowTokenPool (const std::string &name, Proto *proto, int count)
 
virtual ~FlowTokenPool ()
 
TokenPtr GetToken (FlowEntry *entry)
 
- Public Member Functions inherited from TokenPool
 TokenPool (const std::string &name, Proto *proto, int count)
 
virtual ~TokenPool ()
 
virtual TokenPtr GetToken ()
 
int token_count () const
 
bool TokenCheck () const
 
uint64_t failures () const
 
void IncrementRestarts ()
 
uint64_t restarts () const
 

Additional Inherited Members

- Protected Member Functions inherited from TokenPool
void FreeToken ()
 
 DISALLOW_COPY_AND_ASSIGN (TokenPool)
 
- Protected Attributes inherited from TokenPool
std::string name_
 
int max_tokens_
 
int min_tokens_
 
int low_water_mark_
 
tbb::atomic< int > token_count_
 
uint64_t failures_
 
uint64_t restarts_
 
Protoproto_
 

Detailed Description

Definition at line 53 of file flow_token.h.

Constructor & Destructor Documentation

FlowTokenPool::FlowTokenPool ( const std::string &  name,
Proto proto,
int  count 
)
inline

Definition at line 55 of file flow_token.h.

virtual FlowTokenPool::~FlowTokenPool ( )
inlinevirtual

Definition at line 57 of file flow_token.h.

Member Function Documentation

TokenPtr FlowTokenPool::GetToken ( FlowEntry entry)

Definition at line 48 of file flow_token.cc.


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