Module 

Interface WritableMessageChannel

    • Method Detail

      • send

        boolean send​(java.nio.ByteBuffer buffer)
              throws java.io.IOException
        Send a complete message.
        Parameters:
        buffer - the message to send
        Returns:
        the result of the send operation; true if the message was sent, or false if it would block
        Throws:
        java.io.IOException - if an I/O error occurs
      • send

        boolean send​(java.nio.ByteBuffer[] buffers)
              throws java.io.IOException
        Send a complete message.
        Parameters:
        buffers - the buffers holding the message to send
        Returns:
        the result of the send operation; true if the message was sent, or false if it would block
        Throws:
        java.io.IOException - if an I/O error occurs
      • send

        boolean send​(java.nio.ByteBuffer[] buffers,
                     int offs,
                     int len)
              throws java.io.IOException
        Send a complete message.
        Parameters:
        buffers - the buffers holding the message to send
        offs - the offset into the buffer array of the first buffer
        len - the number of buffers that contain data to send
        Returns:
        the result of the send operation; true if the message was sent, or false if it would block
        Throws:
        java.io.IOException - if an I/O error occurs
      • sendFinal

        boolean sendFinal​(java.nio.ByteBuffer buffer)
                   throws java.io.IOException
        Send a complete message. If the message was successfully sent the channel with have its writes shutdown.
        Parameters:
        buffer - the message to send
        Returns:
        the result of the send operation; true if the message was sent, or false if it would block
        Throws:
        java.io.IOException - if an I/O error occurs
      • sendFinal

        boolean sendFinal​(java.nio.ByteBuffer[] buffers)
                   throws java.io.IOException
        Send a complete message. If the message was successfully sent the channel with have its writes shutdown.
        Parameters:
        buffers - the buffers holding the message to send
        Returns:
        the result of the send operation; true if the message was sent, or false if it would block
        Throws:
        java.io.IOException - if an I/O error occurs
      • sendFinal

        boolean sendFinal​(java.nio.ByteBuffer[] buffers,
                          int offs,
                          int len)
                   throws java.io.IOException
        Send a complete message. If the message was successfully sent the channel with have its writes shutdown.
        Parameters:
        buffers - the buffers holding the message to send
        offs - the offset into the buffer array of the first buffer
        len - the number of buffers that contain data to send
        Returns:
        the result of the send operation; true if the message was sent, or false if it would block
        Throws:
        java.io.IOException - if an I/O error occurs