trait AsyncOutputStream extends AnyRef
The Async Output Stream interface represents some asynchronous output stream of bytes.
See the org.mongodb.scala.gridfs.helpers package for adapters that create an AsyncOutputStream
- Annotations
- @deprecated
- Deprecated
(Since version 2.8.0) Use
Observable[ByteBuffer]
instead- Since
1.2
- Alphabetic
- By Inheritance
- AsyncOutputStream
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def close(): Observable[Completed]
Closes the output stream
Closes the output stream
- returns
a Observable with a single element indicating when the AsyncOutputStream has been closed
- abstract def write(src: ByteBuffer): Observable[Int]
Writes a sequence of bytes from the given buffer into this stream.
Writes a sequence of bytes from the given buffer into this stream.
- src
the source buffer containing the data to be written.
- returns
a Observable returning a single element containing the number of bytes written.
This is the documentation for the MongoDB Scala driver.
Driver structure
The mongodb scala driver.
To get started you need a MongoClient instance, either from a connection string or via a org.mongodb.scala.MongoClientSettings.
Notable packages include: