public class ByteBufferPool<T extends ByteBufferPool<T>> extends Object
Constructor and Description |
---|
ByteBufferPool(String key) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
Integer |
bufferSize()
The size of the buffer
|
T |
bufferSize(Integer value)
The size of the buffer
|
Boolean |
direct()
If this is true the buffer pool will use direct buffers, this is
recommended for best performance
|
T |
direct(Boolean value)
If this is true the buffer pool will use direct buffers, this is
recommended for best performance
|
String |
getKey() |
Integer |
leakDetectionPercent()
The percentage of buffers that will be allocated with a leak detector.
|
T |
leakDetectionPercent(Integer value)
The percentage of buffers that will be allocated with a leak detector.
|
Integer |
maxPoolSize()
The maximum amount of buffers to keep in the pool.
|
T |
maxPoolSize(Integer value)
The maximum amount of buffers to keep in the pool.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
Integer |
threadLocalCacheSize()
The maximum number of buffers to cache on each thread.
|
T |
threadLocalCacheSize(Integer value)
The maximum number of buffers to cache on each thread.
|
public ByteBufferPool(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Integer bufferSize()
public Boolean direct()
public T direct(Boolean value)
public Integer leakDetectionPercent()
public T leakDetectionPercent(Integer value)
public Integer maxPoolSize()
public T maxPoolSize(Integer value)
public Integer threadLocalCacheSize()
Copyright © 2020 JBoss by Red Hat. All rights reserved.