protected com.mongodb.client.MongoClient |
ConnectionContext.clientForPrimary(ReplicaSet replicaSet) |
Obtain a client that talks only to the primary node of the replica set.
|
com.mongodb.client.MongoClient |
ConnectionContext.clientForReplicaSet(ReplicaSet replicaSet) |
|
int |
ReplicaSet.compareTo(ReplicaSet that) |
|
private void |
MongoDbSnapshotChangeEventSource.createDataEvents(ChangeEventSource.ChangeEventSourceContext sourceContext,
MongoDbSnapshotChangeEventSource.MongoDbSnapshotContext snapshotContext,
ReplicaSet replicaSet,
ConnectionContext.MongoPrimary primaryClient) |
|
private void |
MongoDbSnapshotChangeEventSource.createDataEventsForCollection(ChangeEventSource.ChangeEventSourceContext sourceContext,
MongoDbSnapshotChangeEventSource.MongoDbSnapshotContext snapshotContext,
EventDispatcher.SnapshotReceiver snapshotReceiver,
ReplicaSet replicaSet,
CollectionId collectionId,
ConnectionContext.MongoPrimary primaryClient) |
|
private void |
MongoDbSnapshotChangeEventSource.createDataEventsForReplicaSet(ChangeEventSource.ChangeEventSourceContext sourceContext,
MongoDbSnapshotChangeEventSource.MongoDbSnapshotContext snapshotContext,
EventDispatcher.SnapshotReceiver snapshotReceiver,
ReplicaSet replicaSet,
ConnectionContext.MongoPrimary primaryClient) |
Dispatches the data change events for the records of a single replica-set.
|
private ConnectionContext.MongoPrimary |
MongoDbSnapshotChangeEventSource.establishConnectionToPrimary(ReplicaSet replicaSet) |
|
private ConnectionContext.MongoPrimary |
MongoDbStreamingChangeEventSource.establishConnectionToPrimary(ReplicaSet replicaSet) |
|
protected ChangeRecordEmitter |
MongoDbSnapshotChangeEventSource.getChangeRecordEmitter(AbstractSnapshotChangeEventSource.SnapshotContext<MongoDbPartition,MongoDbOffsetContext> snapshotContext,
CollectionId collectionId,
org.bson.Document document,
ReplicaSet replicaSet) |
|
ReplicaSetOffsetContext |
MongoDbOffsetContext.getReplicaSetOffsetContext(ReplicaSet replicaSet) |
|
ReplicaSetPartition |
MongoDbOffsetContext.getReplicaSetPartition(ReplicaSet replicaSet) |
|
protected Supplier<com.mongodb.client.MongoClient> |
ConnectionContext.primaryClientFor(ReplicaSet replicaSet) |
Obtain a client that will repeated try to obtain a client to the primary node of the replica set, waiting (and using
this context's back-off strategy) if required until the primary becomes available.
|
protected Supplier<com.mongodb.client.MongoClient> |
ConnectionContext.primaryClientFor(ReplicaSet replicaSet,
ConnectionContext.PrimaryConnectFailed handler) |
Obtain a client that will repeated try to obtain a client to the primary node of the replica set, waiting (and using
this context's back-off strategy) if required until the primary becomes available.
|
ConnectionContext.MongoPrimary |
ConnectionContext.primaryFor(ReplicaSet replicaSet,
Filters filters,
BiConsumer<String,Throwable> errorHandler) |
Obtain a client that will repeated try to obtain a client to the primary node of the replica set, waiting (and using
this context's back-off strategy) if required until the primary becomes available.
|
private void |
MongoDbStreamingChangeEventSource.readOplog(com.mongodb.client.MongoClient primary,
ConnectionContext.MongoPrimary primaryClient,
ReplicaSet replicaSet,
ChangeEventSource.ChangeEventSourceContext context,
MongoDbOffsetContext offsetContext) |
|
private void |
MongoDbSnapshotChangeEventSource.snapshotReplicaSet(ChangeEventSource.ChangeEventSourceContext sourceContext,
MongoDbSnapshotChangeEventSource.MongoDbSnapshotContext ctx,
ReplicaSet replicaSet) |
|
private void |
MongoDbStreamingChangeEventSource.streamChangesForReplicaSet(ChangeEventSource.ChangeEventSourceContext context,
ReplicaSet replicaSet,
MongoDbOffsetContext offsetContext) |
|