LogCabin
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
LogCabin::RPC::OpaqueServer::Handler Class Reference

An interface for handling events generated by an OpaqueServer. More...

#include <OpaqueServer.h>

Inheritance diagram for LogCabin::RPC::OpaqueServer::Handler:
LogCabin::RPC::Server::RPCHandler

List of all members.

Public Member Functions

virtual ~Handler ()
 Destructor.
virtual void handleRPC (OpaqueServerRPC serverRPC)=0
 This method is overridden by a subclass and invoked when a new RPC arrives.

Detailed Description

An interface for handling events generated by an OpaqueServer.

The Handler's lifetime must outlive that of the OpaqueServer.

Definition at line 58 of file OpaqueServer.h.


Constructor & Destructor Documentation

virtual LogCabin::RPC::OpaqueServer::Handler::~Handler ( ) [inline, virtual]

Destructor.

Definition at line 63 of file OpaqueServer.h.


Member Function Documentation

virtual void LogCabin::RPC::OpaqueServer::Handler::handleRPC ( OpaqueServerRPC  serverRPC) [pure virtual]

This method is overridden by a subclass and invoked when a new RPC arrives.

This will be called from the Event::Loop thread, so it must return quickly. It should call OpaqueServerRPC::sendReply() if and when it wants to respond to the RPC request.

Implemented in LogCabin::RPC::Server::RPCHandler.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines