Interface AsyncOutputStream

  • All Known Subinterfaces:
    GridFSUploadStream

    @Deprecated
    public interface AsyncOutputStream
    Deprecated.
    Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)
    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 an AsyncOutputStream

    Since:
    3.3
    • 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