MongoDB  2.6.0
Classes | Static Public Member Functions | List of all members
mongo::Future Class Reference

Generally clients should be using Strategy::commandOp() wherever possible - the Future API does not handle versioning. More...

#include <parallel.h>

Classes

class  CommandResult
 

Static Public Member Functions

static shared_ptr< CommandResultspawnCommand (const string &server, const string &db, const BSONObj &cmd, int options, DBClientBase *conn=0)
 

Detailed Description

Generally clients should be using Strategy::commandOp() wherever possible - the Future API does not handle versioning.

tools for doing asynchronous operations right now uses underlying sync network ops and uses another thread should be changed to use non-blocking io

Member Function Documentation

shared_ptr< Future::CommandResult > mongo::Future::spawnCommand ( const string &  server,
const string &  db,
const BSONObj cmd,
int  options,
DBClientBase conn = 0 
)
static
Parameters
serverserver name
dbdb name
cmdcmd to exec
connoptional connection to use. will use standard pooled if non-specified

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