Class Poco::MongoDB::ReplicaSet
Author: Applied Informatics Software Engineering GmbH and Contributors

# Poco::MongoDB

# class ReplicaSet

Library: MongoDB
Package: MongoDB
Header: Poco/MongoDB/ReplicaSet.h

## Description

Class for working with a replicaset

## Member Summary

Member Functions: findMaster

## Constructors

### ReplicaSet

ReplicaSet(
const std::vector < Net::SocketAddress > & addresses
);

Constructor

## Destructor

### ~ReplicaSet

virtual ~ReplicaSet();

Destructor

## Member Functions

### findMaster

Connection::Ptr findMaster();

Tries to find the master MongoDB instance from the addresses