class NioManagedBuffer extends ManagedBuffer
A ManagedBuffer backed by ByteBuffer.
- Alphabetic
- By Inheritance
- NioManagedBuffer
- ManagedBuffer
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new NioManagedBuffer(buf: ByteBuffer)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def convertToNetty(): AnyRef
Convert the buffer into an Netty object, used to write the data out.
Convert the buffer into an Netty object, used to write the data out. The return value is either a
io.netty.buffer.ByteBufor aio.netty.channel.FileRegion.If this method returns a ByteBuf, then that buffer's reference count will be incremented and the caller will be responsible for releasing this new reference.
- Definition Classes
- NioManagedBuffer → ManagedBuffer
- Annotations
- @Override()
- def createInputStream(): InputStream
Exposes this buffer's data as an InputStream.
Exposes this buffer's data as an InputStream. The underlying implementation does not necessarily check for the length of bytes read, so the caller is responsible for making sure it does not go over the limit.
- Definition Classes
- NioManagedBuffer → ManagedBuffer
- Annotations
- @Override()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nioByteBuffer(): ByteBuffer
Exposes this buffer's data as an NIO ByteBuffer.
Exposes this buffer's data as an NIO ByteBuffer. Changing the position and limit of the returned ByteBuffer should not affect the content of this buffer.
- Definition Classes
- NioManagedBuffer → ManagedBuffer
- Annotations
- @Override()
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def release(): ManagedBuffer
If applicable, decrement the reference count by one and deallocates the buffer if the reference count reaches zero.
If applicable, decrement the reference count by one and deallocates the buffer if the reference count reaches zero.
- Definition Classes
- NioManagedBuffer → ManagedBuffer
- Annotations
- @Override()
- def retain(): ManagedBuffer
Increment the reference count by one if applicable.
Increment the reference count by one if applicable.
- Definition Classes
- NioManagedBuffer → ManagedBuffer
- Annotations
- @Override()
- def size(): Long
Number of bytes of the data.
Number of bytes of the data. If this buffer will decrypt for all of the views into the data, this is the size of the decrypted data.
- Definition Classes
- NioManagedBuffer → ManagedBuffer
- Annotations
- @Override()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- NioManagedBuffer → AnyRef → Any
- Annotations
- @Override()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()