private abstract static class BufferStrategyFactory.QueueProvider<T> extends Object implements BufferStrategy.BufferProvider<T>
| Modifier and Type | Field and Description | 
|---|---|
| private ConcurrentLinkedQueue<T> | queue | 
| private int | size | 
| Constructor and Description | 
|---|
| QueueProvider(int size) | 
| Modifier and Type | Method and Description | 
|---|---|
| T | newBuffer() | 
| protected abstract T | newInstance(int size) | 
| void | release(T value) | 
private final int size
private final ConcurrentLinkedQueue<T> queue
protected abstract T newInstance(int size)
public T newBuffer()
newBuffer in interface BufferStrategy.BufferProvider<T>public void release(T value)
release in interface BufferStrategy.BufferProvider<T>Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.