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:
allocate
in interfaceByteBufferPool
-
getArrayBackedPool
Description copied from interface:ByteBufferPool
If 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:
getArrayBackedPool
in interfaceByteBufferPool
- Returns:
- An array backed pool of the same size
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceByteBufferPool
- Specified by:
close
in interfaceCloseable
-
getBufferSize
public int getBufferSize()- Specified by:
getBufferSize
in interfaceByteBufferPool
-
isDirect
public boolean isDirect()- Specified by:
isDirect
in interfaceByteBufferPool
-