Proud::CRecycleNumberFactoryT< TYPE > Class Template Reference

Public Member Functions

 CRecycleNumberFactoryT (double issueValidTime)
 
TYPE Create (int64_t curTime)
 
void Drop (int64_t curTime, TYPE dropID)
 

Detailed Description

template<typename TYPE>
class Proud::CRecycleNumberFactoryT< TYPE >

TODO:translate needed. Generate a unique integer, however it performs the role of generating a recyclable value. Recycle the value as the TCP port number but it operates in the format to have cool time for a certain period of time. To optimize VLQ, generate and handle the minimum value.