@NotThreadSafe public class BufferCache extends Object
BsonDataInput
.Modifier and Type | Field and Description |
---|---|
static int |
MAXIMUM_SIZE
The maximum number of bytes in each cached buffer.
|
static int |
MINIMUM_SIZE
The minimum number of bytes in each buffer.
|
Constructor and Description |
---|
BufferCache() |
Modifier and Type | Method and Description |
---|---|
void |
checkin(ByteBuffer byteBuffer) |
void |
checkin(CharBuffer charBuffer) |
ByteBuffer |
getByteBuffer(int minimumSize) |
CharBuffer |
getCharBuffer(int minimumSize) |
public static final int MINIMUM_SIZE
public static final int MAXIMUM_SIZE
public ByteBuffer getByteBuffer(int minimumSize)
public CharBuffer getCharBuffer(int minimumSize)
public void checkin(ByteBuffer byteBuffer)
public void checkin(CharBuffer charBuffer)
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.