| Modifier and Type | Class and Description |
|---|---|
class |
BytesPool.PooledBytes
Specific
Bytes implementation for the pools. |
| Modifier and Type | Method and Description |
|---|---|
BytesPool.PooledBytes |
acquire()
Return the pooled bytes buffer.
|
BytesPool.PooledBytes |
acquire(int minSize)
Return the pooled bytes buffer with guaranteed minimal size.
|
int |
getAcquiredCount()
Returns the acquired buffers count.
|
int |
getFreeCount()
Returns the free buffers count.
|
int |
getTotalCount()
Returns the total buffers count.
|
void |
release(@NonNull BytesPool.PooledBytes buffer)
Release the acquired bytes buffer.
|
public BytesPool.PooledBytes acquire()
Bytes instancepublic BytesPool.PooledBytes acquire(int minSize)
minSize - expected minimal buffer size in mytesBytes instancepublic void release(@NonNull
@NonNull BytesPool.PooledBytes buffer)
buffer - the buffer to releasepublic int getAcquiredCount()
public int getFreeCount()
public int getTotalCount()
Copyright © 2019 Appulse. All rights reserved.