Robust Distributed System Nucleus (rDSN)  ver 1.0.0
Classes | Public Member Functions | Protected Member Functions | List of all members
dsn::serverlet< T > Class Template Reference
Inheritance diagram for dsn::serverlet< T >:
dsn::clientlet

Public Member Functions

 serverlet (const char *nm, int task_bucket_count=8)
 
const std::string & name () const
 
- Public Member Functions inherited from dsn::clientlet
 clientlet (int task_bucket_count=13)
 
dsn_task_tracker_t tracker () const
 
rpc_address primary_address ()
 

Protected Member Functions

template<typename TRequest >
bool register_rpc_handler (dsn_task_code_t rpc_code, const char *rpc_name_, void(T::*handler)(const TRequest &), dsn_gpid gpid=dsn_gpid{0})
 
template<typename TRequest , typename TResponse >
bool register_rpc_handler (dsn_task_code_t rpc_code, const char *rpc_name_, void(T::*handler)(const TRequest &, TResponse &), dsn_gpid gpid=dsn_gpid{0})
 
template<typename TRequest , typename TResponse >
bool register_async_rpc_handler (dsn_task_code_t rpc_code, const char *rpc_name_, void(T::*handler)(const TRequest &, rpc_replier< TResponse > &), dsn_gpid gpid=dsn_gpid{0})
 
bool register_rpc_handler (dsn_task_code_t rpc_code, const char *rpc_name_, void(T::*handler)(dsn_message_t), dsn_gpid gpid=dsn_gpid{0})
 
bool unregister_rpc_handler (dsn_task_code_t rpc_code, dsn_gpid gpid=dsn_gpid{0})
 
template<typename TResponse >
void reply (dsn_message_t request, const TResponse &resp)
 
- Protected Member Functions inherited from dsn::clientlet
void check_hashed_access ()
 

Additional Inherited Members

- Static Public Member Functions inherited from dsn::clientlet
static uint32_t random32 (uint32_t min, uint32_t max)
 
static uint64_t random64 (uint64_t min, uint64_t max)
 
static uint64_t now_ns ()
 
static uint64_t now_us ()
 
static uint64_t now_ms ()
 

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