接口 PooledDataBuffer
- 所有超级接口:
DataBuffer,TouchableDataBuffer
- 所有已知实现类:
NettyDataBuffer
Extension of
DataBuffer that allows for buffers that share
a memory pool. Introduces methods for reference counting.- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma, Harry Yang
-
嵌套类概要
从接口继承的嵌套类/接口 cn.taketoday.core.io.buffer.DataBuffer
DataBuffer.ByteBufferIterator -
方法概要
修饰符和类型方法说明booleanReturntrueif this buffer is allocated;falseif it has been deallocated.booleanrelease()Decrease the reference count for this buffer by one, and deallocate it once the count reaches zero.retain()Increase the reference count for this buffer by one.Associate the given hint with the data buffer for debugging purposes.从接口继承的方法 cn.taketoday.core.io.buffer.DataBuffer
asByteBuffer, asByteBuffer, asInputStream, asInputStream, asOutputStream, capacity, capacity, ensureWritable, factory, getByte, indexOf, lastIndexOf, read, read, read, readableByteBuffers, readableByteCount, readPosition, readPosition, retainedSlice, slice, split, toByteBuffer, toByteBuffer, toByteBuffer, toByteBuffer, toString, toString, writableByteBuffers, writableByteCount, write, write, write, write, write, write, writePosition, writePosition
-
方法详细资料
-
isAllocated
boolean isAllocated()Returntrueif this buffer is allocated;falseif it has been deallocated. -
retain
PooledDataBuffer retain()Increase the reference count for this buffer by one.- 返回:
- this buffer
-
touch
Associate the given hint with the data buffer for debugging purposes.- 指定者:
touch在接口中TouchableDataBuffer- 返回:
- this buffer
-
release
boolean release()Decrease the reference count for this buffer by one, and deallocate it once the count reaches zero.- 返回:
trueif the buffer was deallocated;falseotherwise
-