public static class BufferSupplier.GrowableBufferSupplier extends BufferSupplier
BufferSupplier.GrowableBufferSupplierNO_CACHING| 构造器和说明 |
|---|
GrowableBufferSupplier() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Release all resources associated with this supplier.
|
ByteBuffer |
get(int minCapacity)
Supply a buffer with the required capacity.
|
void |
release(ByteBuffer buffer)
Return the provided buffer to be reused by a subsequent call to `get`.
|
createpublic ByteBuffer get(int minCapacity)
BufferSupplierget 在类中 BufferSupplierpublic void release(ByteBuffer buffer)
BufferSupplierrelease 在类中 BufferSupplierpublic void close()
BufferSupplierclose 在接口中 AutoCloseableclose 在类中 BufferSupplierCopyright © 2020 Joyqueue Community. All rights reserved.