mixinafMongo::Connection
afMongo::Connection
Represents a connection to a MongoDB instance. All connections on creation should be connected to a MongoDB instance and ready to go.
@see TcpConnection
- close
abstract Void close()
Closes the connection.
- in
abstract InStream in()
Data from MongoDB to the client.
- isClosed
abstract Bool isClosed()
Return
true
if this socket is closed.- makeTcpConnection
static Connection makeTcpConnection(IpAddr address := IpAddr)IpAddr.<ctor>("127.0.0.1", Int port := 27017, SocketOptions? options := null)
Creates a TCP Connection to the given IP address.
- out
abstract OutStream out()
Data to MongoDB from the client.