Package com.mongodb.async.client.gridfs
Interface AsyncOutputStream
-
- All Known Subinterfaces:
GridFSUploadStream
Deprecated.Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)
@Deprecated public interface AsyncOutputStream
The Async Output Stream interface represents some asynchronous output stream of bytes.See the
com.mongodb.async.client.gridfs.helpers
package for adapters that create anAsyncOutputStream
- Since:
- 3.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
close(SingleResultCallback<Void> callback)
Deprecated.Closes the output streamvoid
write(ByteBuffer src, SingleResultCallback<Integer> callback)
Deprecated.Writes a sequence of bytes from the given buffer into this stream.
-
-
-
Method Detail
-
write
void write(ByteBuffer src, SingleResultCallback<Integer> callback)
Deprecated.Writes a sequence of bytes from the given buffer into this stream.- Parameters:
src
- the source buffer containing the data to be written.callback
- the callback returning the number of bytes written.
-
close
void close(SingleResultCallback<Void> callback)
Deprecated.Closes the output stream- Parameters:
callback
- the callback that indicates when the stream has been closed
-
-