Package com.mongodb.binding
Interface WriteBinding
- 
- All Superinterfaces:
 ReferenceCounted
- All Known Subinterfaces:
 ReadWriteBinding
- All Known Implementing Classes:
 ClusterBinding,SingleServerBinding
@Deprecated public interface WriteBinding extends ReferenceCounted
Deprecated.A factory of connection sources to servers that can be written to, e.g, a standalone, a mongos, or a replica set primary.- Since:
 - 3.0
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description SessionContextgetSessionContext()Deprecated.Gets the session context for this binding.ConnectionSourcegetWriteConnectionSource()Deprecated.Supply a connection source to a server that can be written toWriteBindingretain()Deprecated.Retain an additional reference to this object.- 
Methods inherited from interface com.mongodb.binding.ReferenceCounted
getCount, release 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getWriteConnectionSource
ConnectionSource getWriteConnectionSource()
Deprecated.Supply a connection source to a server that can be written to- Returns:
 - a connection source
 
 
- 
getSessionContext
SessionContext getSessionContext()
Deprecated.Gets the session context for this binding.- Returns:
 - the session context, which may not be null
 - Since:
 - 3.6
 
 
- 
retain
WriteBinding retain()
Deprecated.Description copied from interface:ReferenceCountedRetain an additional reference to this object. All retained references must be released, or there will be a leak.- Specified by:
 retainin interfaceReferenceCounted- Returns:
 - this
 
 
 - 
 
 -