Package io.undertow.server
Class XnioByteBufferPool
java.lang.Object
io.undertow.server.XnioByteBufferPool
- All Implemented Interfaces:
ByteBufferPool,Closeable,AutoCloseable
- Author:
- Stuart Douglas
-
Constructor Details
-
XnioByteBufferPool
-
-
Method Details
-
allocate
- Specified by:
allocatein interfaceByteBufferPool
-
getArrayBackedPool
Description copied from interface:ByteBufferPoolIf this byte buffer pool corresponds to an array backed pool then this will return itself. Otherwise it will return an array backed pool that contains buffers of the same size.- Specified by:
getArrayBackedPoolin interfaceByteBufferPool- Returns:
- An array backed pool of the same size
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceByteBufferPool- Specified by:
closein interfaceCloseable
-
getBufferSize
public int getBufferSize()- Specified by:
getBufferSizein interfaceByteBufferPool
-
isDirect
public boolean isDirect()- Specified by:
isDirectin interfaceByteBufferPool
-