@Deprecated
public class AsyncClusterBinding
extends com.mongodb.internal.binding.AbstractReferenceCounted
implements com.mongodb.internal.binding.AsyncClusterAwareReadWriteBinding
| Constructor and Description |
|---|
AsyncClusterBinding(Cluster cluster,
ReadPreference readPreference)
Deprecated.
|
AsyncClusterBinding(Cluster cluster,
ReadPreference readPreference,
ReadConcern readConcern)
Deprecated.
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
Cluster |
getCluster()
Deprecated.
|
void |
getConnectionSource(ServerAddress serverAddress,
SingleResultCallback<AsyncConnectionSource> callback)
Deprecated.
|
void |
getReadConnectionSource(SingleResultCallback<AsyncConnectionSource> callback)
Deprecated.
Returns a connection source to a server that satisfies the specified read preference.
|
ReadPreference |
getReadPreference()
Deprecated.
The read preference that all connection sources returned by this instance will satisfy.
|
SessionContext |
getSessionContext()
Deprecated.
Gets the session context for this binding.
|
void |
getWriteConnectionSource(SingleResultCallback<AsyncConnectionSource> callback)
Deprecated.
Supply a connection source to a server that can be written to
|
AsyncReadWriteBinding |
retain()
Deprecated.
Retain an additional reference to this object.
|
getCount, releaseequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCount, release@Deprecated public AsyncClusterBinding(Cluster cluster, ReadPreference readPreference)
AsyncClusterBinding(Cluster, ReadPreference, ReadConcern)cluster - a non-null Cluster which will be used to select a server to bind toreadPreference - a non-null ReadPreference for read operationspublic AsyncClusterBinding(Cluster cluster, ReadPreference readPreference, ReadConcern readConcern)
cluster - a non-null Cluster which will be used to select a server to bind toreadPreference - a non-null ReadPreference for read operationsreadConcern - a non-null read concernpublic AsyncReadWriteBinding retain()
ReferenceCountedretain in interface AsyncReadBindingretain in interface AsyncReadWriteBindingretain in interface AsyncWriteBindingretain in interface ReferenceCountedretain in class com.mongodb.internal.binding.AbstractReferenceCountedpublic Cluster getCluster()
getCluster in interface com.mongodb.internal.binding.AsyncClusterAwareReadWriteBindingpublic ReadPreference getReadPreference()
AsyncReadBindinggetReadPreference in interface AsyncReadBindingpublic SessionContext getSessionContext()
AsyncReadBindinggetSessionContext in interface AsyncReadBindinggetSessionContext in interface AsyncWriteBindingpublic void getReadConnectionSource(SingleResultCallback<AsyncConnectionSource> callback)
AsyncReadBindinggetReadConnectionSource in interface AsyncReadBindingcallback - the to be passed the connection sourcepublic void getWriteConnectionSource(SingleResultCallback<AsyncConnectionSource> callback)
AsyncWriteBindinggetWriteConnectionSource in interface AsyncWriteBindingcallback - the to be passed the connection sourcepublic void getConnectionSource(ServerAddress serverAddress, SingleResultCallback<AsyncConnectionSource> callback)
getConnectionSource in interface com.mongodb.internal.binding.AsyncClusterAwareReadWriteBindingCopyright © 2010 - 2023 Adobe. All Rights Reserved