Top Description Methods
io.undertow.connector

public Interface ByteBufferPool

extends Closeable
Known Direct Implementers
io.undertow.server.DefaultByteBufferPool, io.undertow.server.XnioByteBufferPool
Imports
java.io.Closeable

A pool of byte buffers
Author
Stuart Douglas

Method Summary

Modifier and TypeMethod and Description
public PooledByteBuffer
public void
close()

Redeclares java.io.Closeable.close.

Closes this stream and releases any system resources associated with it.

public ByteBufferPool

Returns:

An array backed pool of the same size
getArrayBackedPool
()

If this byte buffer pool corresponds to an array backed pool then this will return itself.

public int
public boolean

Method Detail

allocateback to summary
public PooledByteBuffer allocate()
closeback to summary
public void close()

Redeclares java.io.Closeable.close.

Doc from java.io.Closeable.close.

Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.

As noted in AutoCloseable#close(), cases where the close may fail require careful attention. It is strongly advised to relinquish the underlying resources and to internally mark the Closeable as closed, prior to throwing the IOException.

getArrayBackedPoolback to summary
public ByteBufferPool getArrayBackedPool()

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.

Returns:ByteBufferPool

An array backed pool of the same size

getBufferSizeback to summary
public int getBufferSize()
isDirectback to summary
public boolean isDirect()