public class BufferPool<T extends BufferPool<T>> extends Object
Constructor and Description |
---|
BufferPool(String key) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
Integer |
bufferSize()
The size of each buffer slice in bytes, if not set optimal value is
calculated based on available RAM resources in your system.
|
T |
bufferSize(Integer value)
The size of each buffer slice in bytes, if not set optimal value is
calculated based on available RAM resources in your system.
|
Integer |
buffersPerSlice()
How many buffers per slice, if not set optimal value is calculated based
on available RAM resources in your system.
|
T |
buffersPerSlice(Integer value)
How many buffers per slice, if not set optimal value is calculated based
on available RAM resources in your system.
|
Boolean |
directBuffers()
Does the buffer pool use direct buffers, some platforms don't support
direct buffers
|
T |
directBuffers(Boolean value)
Does the buffer pool use direct buffers, some platforms don't support
direct buffers
|
String |
getKey() |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
public BufferPool(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Integer bufferSize()
public T bufferSize(Integer value)
public Integer buffersPerSlice()
public T buffersPerSlice(Integer value)
public Boolean directBuffers()
Copyright © 2018 JBoss by Red Hat. All rights reserved.