Interface AsyncReadBinding

All Superinterfaces:
ReferenceCounted
All Known Subinterfaces:
AsyncReadWriteBinding
All Known Implementing Classes:
AsyncClusterBinding, AsyncSingleConnectionReadBinding, AsyncSingleServerBinding

@Deprecated public interface AsyncReadBinding extends ReferenceCounted
Deprecated.
An asynchronous factory of connection sources to servers that can be read from and that satisfy the specified read preference.
Since:
3.0
  • Method Details

    • getReadPreference

      ReadPreference getReadPreference()
      Deprecated.
      The read preference that all connection sources returned by this instance will satisfy.
      Returns:
      the non-null read preference
    • getSessionContext

      SessionContext getSessionContext()
      Deprecated.
      Gets the session context for this binding.
      Returns:
      the session context, which may not be null
      Since:
      3.6
    • getReadConnectionSource

      void getReadConnectionSource(SingleResultCallback<AsyncConnectionSource> callback)
      Deprecated.
      Returns a connection source to a server that satisfies the specified read preference.
      Parameters:
      callback - the to be passed the connection source
    • retain

      Deprecated.
      Description copied from interface: ReferenceCounted
      Retain an additional reference to this object. All retained references must be released, or there will be a leak.
      Specified by:
      retain in interface ReferenceCounted
      Returns:
      this