| java.lang.Object | |
| ↳ | com.mongodb.DBPort |
represents a Port to the database, which is effectively a single connection to a server Methods implemented at the port level should throw the raw exceptions like IOException, so that the connector above can make appropriate decisions on how to handle.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | PORT | the default port | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
creates a new DBPort
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
makes sure that a connection to the server has been opened
| |||||||||||
Gets the pool that this port belongs to
| |||||||||||
returns a String representation of the target host
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
closes the underlying connection and streams
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
the default port
makes sure that a connection to the server has been opened
| IOException |
|---|
closes the underlying connection and streams