JavaScript is disabled on your browser.
Skip navigation links
  • Detail:
  • Field |
  • Constr |
  • Method
io.netty.channel

Class ChannelOutboundBuffer

    • Method Detail

      • addFlush

        public void addFlush()
        Add a flush to this ChannelOutboundBuffer. This means all previous added messages are marked as flushed and so you will be able to handle them.
      • current

        public java.lang.Object current()
        Return the current message to write or null if nothing was flushed before and so is ready to be written.
      • progress

        public void progress(long amount)
        Notify the ChannelPromise of the current message about writing progress.
      • remove

        public boolean remove()
        Will remove the current message, mark its ChannelPromise as success and return true. If no flushed message exists at the time this method is called it will return false to signal that no more messages are ready to be handled.
      • remove

        public boolean remove(java.lang.Throwable cause)
        Will remove the current message, mark its ChannelPromise as failure using the given Throwable and return true. If no flushed message exists at the time this method is called it will return false to signal that no more messages are ready to be handled.
      • removeBytes

        public void removeBytes(long writtenBytes)
        Removes the fully written entries and update the reader index of the partially written entry. This operation assumes all messages in this buffer is ByteBuf.
      • nioBufferCount

        public int nioBufferCount()
        Returns the number of ByteBuffer that can be written out of the ByteBuffer array that was obtained via nioBuffers(). This method MUST be called after nioBuffers() was called.
      • nioBufferSize

        public long nioBufferSize()
        Returns the number of bytes that can be written out of the ByteBuffer array that was obtained via nioBuffers(). This method MUST be called after nioBuffers() was called.
      • getUserDefinedWritability

        public boolean getUserDefinedWritability(int index)
        Returns true if and only if the user-defined writability flag at the specified index is set to true.
      • setUserDefinedWritability

        public void setUserDefinedWritability(int index,
         boolean writable)
        Sets a user-defined writability flag at the specified index.
      • isEmpty

        public boolean isEmpty()
        Returns true if there are flushed messages in this ChannelOutboundBuffer or false otherwise.
      • recycle

        @Deprecated
        public void recycle()
        Deprecated.
      • totalPendingWriteBytes

        public long totalPendingWriteBytes()
      • bytesBeforeUnwritable

        public long bytesBeforeUnwritable()
        Get how many bytes can be written until isWritable() returns false. This quantity will always be non-negative. If isWritable() is false then 0.
      • bytesBeforeWritable

        public long bytesBeforeWritable()
        Get how many bytes must be drained from the underlying buffer until isWritable() returns true. This quantity will always be non-negative. If isWritable() is true then 0.
Skip navigation links
  • Detail:
  • Field |
  • Constr |
  • Method

Copyright © 2008–2018 The Netty Project. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /