Class WritableSslChannel

    • Field Detail

      • connection

        private final SslConnection<?> connection
        Deprecated.
        The parent SSL connection.
    • Constructor Detail

      • WritableSslChannel

        public WritableSslChannel​(WritableSelectionChannel target,
                                  SslConnection<?> connection,
                                  WakeupListener wakeupListener)
        Deprecated.
        Constructor.
        Parameters:
        target - The wrapped channel.
        connection - The parent SSL connection.
        wakeupListener - The wakeup listener that will be notified.
    • Method Detail

      • couldFill

        public boolean couldFill​(Buffer buffer,
                                 java.lang.Object... args)
        Deprecated.
        Description copied from class: WritableBufferedChannel
        Indicates if the buffer could be filled again.
        Specified by:
        couldFill in interface BufferProcessor
        Overrides:
        couldFill in class WritableBufferedChannel
        Parameters:
        buffer - The IO buffer to fill.
        args - The optional arguments to pass back to the callbacks.
        Returns:
        True if the buffer could be filled again.
      • getConnection

        protected SslConnection<?> getConnection()
        Deprecated.
        Returns the parent SSL connection.
        Returns:
        The parent SSL connection.
      • onCompleted

        public void onCompleted()
        Deprecated.
        Callback method invoked upon delegated tasks completion.
        Specified by:
        onCompleted in interface TasksListener
      • onFill

        public int onFill​(Buffer buffer,
                          java.lang.Object... args)
                   throws java.io.IOException
        Deprecated.
        Description copied from class: WritableBufferedChannel
        Fills the byte buffer by writing the current message.
        Specified by:
        onFill in interface BufferProcessor
        Overrides:
        onFill in class WritableBufferedChannel
        Parameters:
        buffer - The IO buffer to drain.
        args - The optional arguments to pass back to the callbacks.
        Returns:
        The number of bytes filled.
        Throws:
        java.io.IOException
      • write

        public int write​(java.nio.ByteBuffer sourceBuffer)
                  throws java.io.IOException
        Deprecated.
        Description copied from class: WritableBufferedChannel
        Reads some bytes and put them into the destination buffer. The bytes come from the underlying channel.
        Specified by:
        write in interface java.nio.channels.WritableByteChannel
        Overrides:
        write in class WritableBufferedChannel
        Parameters:
        sourceBuffer - The source buffer.
        Returns:
        The number of bytes written, possibly 0.
        Throws:
        java.io.IOException