public static class ByteBufferPool.Bucket
extends java.lang.Object
Constructor and Description |
---|
Bucket(ByteBufferPool pool,
int capacity,
int maxSize) |
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
acquire() |
java.nio.ByteBuffer |
acquire(boolean direct)
Deprecated.
use
acquire() instead |
void |
clear() |
void |
release(java.nio.ByteBuffer buffer) |
java.lang.String |
toString() |
public Bucket(ByteBufferPool pool, int capacity, int maxSize)
public java.nio.ByteBuffer acquire()
@Deprecated public java.nio.ByteBuffer acquire(boolean direct)
acquire()
insteaddirect
- whether to create a direct buffer when none is availablepublic void release(java.nio.ByteBuffer buffer)
public void clear()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 - 2019 Adobe. All Rights Reserved