Class NonWorkingContentChannel

  • All Implemented Interfaces:
    ContentChannel

    public final class NonWorkingContentChannel
    extends java.lang.Object
    implements ContentChannel
    Author:
    Simon Thoresen Hult
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close​(CompletionHandler handler)
      Closes this ContentChannel.
      void write​(java.nio.ByteBuffer buf, CompletionHandler handler)
      Schedules the given ByteBuffer to be written to the content corresponding to this ContentChannel.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NonWorkingContentChannel

        public NonWorkingContentChannel()
    • Method Detail

      • write

        public void write​(java.nio.ByteBuffer buf,
                          CompletionHandler handler)
        Description copied from interface: ContentChannel
        Schedules the given ByteBuffer to be written to the content corresponding to this ContentChannel. This call transfers ownership of the given ByteBuffer to this ContentChannel, i.e. no further calls can be made to the buffer. The execution of writes happen in the same order as this method was invoked.
        Specified by:
        write in interface ContentChannel
        Parameters:
        buf - The ByteBuffer to schedule for write. No further calls can be made to this buffer.
        handler - The CompletionHandler to call after the write has been executed.