Package com.mongodb.binding
Interface ReadWriteBinding
-
- All Superinterfaces:
ReadBinding
,ReferenceCounted
,WriteBinding
- All Known Implementing Classes:
ClusterBinding
,SingleServerBinding
@Deprecated public interface ReadWriteBinding extends ReadBinding, WriteBinding, ReferenceCounted
Deprecated.A factory of connection sources to servers that can be read from or written to.- Since:
- 3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ReadWriteBinding
retain()
Deprecated.Retain an additional reference to this object.-
Methods inherited from interface com.mongodb.binding.ReadBinding
getReadConnectionSource, getReadPreference, getSessionContext
-
Methods inherited from interface com.mongodb.binding.ReferenceCounted
getCount, release
-
Methods inherited from interface com.mongodb.binding.WriteBinding
getSessionContext, getWriteConnectionSource
-
-
-
-
Method Detail
-
retain
ReadWriteBinding 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 interfaceReadBinding
- Specified by:
retain
in interfaceReferenceCounted
- Specified by:
retain
in interfaceWriteBinding
- Returns:
- this
-
-