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 an AsyncOutputStream

    Since:
    3.3
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      void close​(com.mongodb.async.SingleResultCallback<java.lang.Void> callback)
      Deprecated. 
      Closes the output stream
      void write​(java.nio.ByteBuffer src, com.mongodb.async.SingleResultCallback<java.lang.Integer> callback)
      Deprecated. 
      Writes a sequence of bytes from the given buffer into this stream.
    • Method Detail

      • write

        void write​(java.nio.ByteBuffer src,
                   com.mongodb.async.SingleResultCallback<java.lang.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​(com.mongodb.async.SingleResultCallback<java.lang.Void> callback)
        Deprecated. 
        Closes the output stream
        Parameters:
        callback - the callback that indicates when the stream has been closed