rippled
Public Member Functions | Public Attributes | List of all members
ripple::Resource::Entry Struct Reference
Inheritance diagram for ripple::Resource::Entry:
Inheritance graph
[legend]
Collaboration diagram for ripple::Resource::Entry:
Collaboration graph
[legend]

Public Member Functions

 Entry ()=delete
 
 Entry (clock_type::time_point const now)
 
std::string to_string () const
 
bool isUnlimited () const
 Returns true if this connection should have no resource limits applied–it is still possible for certain RPC commands to be forbidden, but that depends on Role. More...
 
int balance (clock_type::time_point const now)
 
int add (int charge, clock_type::time_point const now)
 

Public Attributes

Key const * key
 
int refcount
 
DecayingSample< decayWindowSeconds, clock_typelocal_balance
 
int remote_balance
 
clock_type::time_point lastWarningTime
 
clock_type::time_point whenExpires
 

Detailed Description

Definition at line 37 of file Entry.h.

Constructor & Destructor Documentation

◆ Entry() [1/2]

ripple::Resource::Entry::Entry ( )
delete

◆ Entry() [2/2]

ripple::Resource::Entry::Entry ( clock_type::time_point const  now)
explicit
Parameters
nowConstruction time of Entry.

Definition at line 44 of file Entry.h.

Member Function Documentation

◆ to_string()

std::string ripple::Resource::Entry::to_string ( ) const

Definition at line 54 of file Entry.h.

◆ isUnlimited()

bool ripple::Resource::Entry::isUnlimited ( ) const

Returns true if this connection should have no resource limits applied–it is still possible for certain RPC commands to be forbidden, but that depends on Role.

Definition at line 65 of file Entry.h.

◆ balance()

int ripple::Resource::Entry::balance ( clock_type::time_point const  now)

Definition at line 72 of file Entry.h.

◆ add()

int ripple::Resource::Entry::add ( int  charge,
clock_type::time_point const  now 
)

Definition at line 80 of file Entry.h.

Member Data Documentation

◆ key

Key const* ripple::Resource::Entry::key

Definition at line 86 of file Entry.h.

◆ refcount

int ripple::Resource::Entry::refcount

Definition at line 89 of file Entry.h.

◆ local_balance

DecayingSample<decayWindowSeconds, clock_type> ripple::Resource::Entry::local_balance

Definition at line 92 of file Entry.h.

◆ remote_balance

int ripple::Resource::Entry::remote_balance

Definition at line 95 of file Entry.h.

◆ lastWarningTime

clock_type::time_point ripple::Resource::Entry::lastWarningTime

Definition at line 98 of file Entry.h.

◆ whenExpires

clock_type::time_point ripple::Resource::Entry::whenExpires

Definition at line 101 of file Entry.h.