Module 

Interface MessageSourceConduit

    • Method Detail

      • receive

        int receive​(java.nio.ByteBuffer dst)
             throws java.io.IOException
        Receive a message.
        Parameters:
        buffer - the buffer that will hold the message
        Returns:
        the size of the received message, 0 if no message is available, and -1 if the message channel has reached an end-of-file condition
        Throws:
        java.io.IOException - if an I/O error occurs
      • receive

        long receive​(java.nio.ByteBuffer[] dsts,
                     int offs,
                     int len)
              throws java.io.IOException
        Receive a message.
        Parameters:
        buffers - the buffers that will hold the message
        offs - the offset into the array of buffers of the first buffer to read into
        len - the number of buffers to fill
        Returns:
        the size of the received message, 0 if no message is available, and -1 if the message channel has reached an end-of-file condition
        Throws:
        java.io.IOException - if an I/O error occurs