xrpld
Loading...
Searching...
No Matches
xrpl::resource::Entry Struct Reference

#include <Entry.h>

Inheritance diagram for xrpl::resource::Entry:
Collaboration diagram for xrpl::resource::Entry:

Public Member Functions

 Entry ()=delete
 Entry (clock_type::time_point const now)
std::string toString () 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.
int balance (clock_type::time_point const now)
int add (int charge, clock_type::time_point const now)

Public Attributes

std::optional< PublicKeypublicKey
Key const * key {}
int refcount
DecayingSample< kDecayWindowSeconds, clock_typelocalBalance
int remoteBalance
clock_type::time_point lastWarningTime
clock_type::time_point whenExpires

Private Types

using value_type = T

Private Attributes

friend T
ListNodenext_ = nullptr
ListNodeprev_ = nullptr

Detailed Description

Definition at line 21 of file Entry.h.

Member Typedef Documentation

◆ value_type

template<typename T, typename Tag>
using beast::detail::ListNode< T, Tag >::value_type = T
privateinherited

Definition at line 44 of file List.h.

Constructor & Destructor Documentation

◆ Entry() [1/2]

xrpl::resource::Entry::Entry ( )
delete

◆ Entry() [2/2]

xrpl::resource::Entry::Entry ( clock_type::time_point const now)
explicit
Parameters
nowConstruction time of Entry.

Definition at line 28 of file Entry.h.

Member Function Documentation

◆ toString()

std::string xrpl::resource::Entry::toString ( ) const
nodiscard

Definition at line 34 of file Entry.h.

◆ isUnlimited()

bool xrpl::resource::Entry::isUnlimited ( ) const
nodiscard

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 45 of file Entry.h.

◆ balance()

int xrpl::resource::Entry::balance ( clock_type::time_point const now)

Definition at line 52 of file Entry.h.

◆ add()

int xrpl::resource::Entry::add ( int charge,
clock_type::time_point const now )

Definition at line 60 of file Entry.h.

Member Data Documentation

◆ publicKey

std::optional<PublicKey> xrpl::resource::Entry::publicKey

Definition at line 66 of file Entry.h.

◆ key

Key const* xrpl::resource::Entry::key {}

Definition at line 69 of file Entry.h.

◆ refcount

int xrpl::resource::Entry::refcount

Definition at line 72 of file Entry.h.

◆ localBalance

DecayingSample<kDecayWindowSeconds, clock_type> xrpl::resource::Entry::localBalance

Definition at line 75 of file Entry.h.

◆ remoteBalance

int xrpl::resource::Entry::remoteBalance

Definition at line 78 of file Entry.h.

◆ lastWarningTime

clock_type::time_point xrpl::resource::Entry::lastWarningTime

Definition at line 81 of file Entry.h.

◆ whenExpires

clock_type::time_point xrpl::resource::Entry::whenExpires

Definition at line 84 of file Entry.h.

◆ T

template<typename T, typename Tag>
friend beast::detail::ListNode< T, Tag >::T
privateinherited

Definition at line 46 of file List.h.

◆ next_

template<typename T, typename Tag>
ListNode* beast::detail::ListNode< T, Tag >::next_ = nullptr
privateinherited

Definition at line 52 of file List.h.

◆ prev_

template<typename T, typename Tag>
ListNode* beast::detail::ListNode< T, Tag >::prev_ = nullptr
privateinherited

Definition at line 53 of file List.h.