public class DMessageCache extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_CACHED_DATA_SIZE |
Constructor and Description |
---|
DMessageCache() |
Modifier and Type | Method and Description |
---|---|
static DMessage |
alloc(int size)
Obtain a DMessage from the cache if possible, otherwise make one for me.
|
static void |
free(DMessage msg)
Put a DMessage into the cache for reuse
|
static int |
size2Index(int size) |
public static final int MAX_CACHED_DATA_SIZE
Copyright © 2016 The Apache Software Foundation. All rights reserved.