public class ThreadLocalCache extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BYTES_CACH_INIT_SIZE |
static int |
BYTES_CACH_INIT_SIZE_EXP |
static int |
BYTES_CACH_MAX_SIZE |
static int |
BYTES_CACH_MAX_SIZE_EXP |
static int |
CHARS_CACH_INIT_SIZE |
static int |
CHARS_CACH_INIT_SIZE_EXP |
static int |
CHARS_CACH_MAX_SIZE |
static int |
CHARS_CACH_MAX_SIZE_EXP |
| Constructor and Description |
|---|
ThreadLocalCache() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearBytes() |
static void |
clearChars() |
static byte[] |
getBytes(int length) |
static char[] |
getChars(int length) |
static CharsetDecoder |
getUTF8Decoder() |
public static final int CHARS_CACH_INIT_SIZE
public static final int CHARS_CACH_INIT_SIZE_EXP
public static final int CHARS_CACH_MAX_SIZE
public static final int CHARS_CACH_MAX_SIZE_EXP
public static final int BYTES_CACH_INIT_SIZE
public static final int BYTES_CACH_INIT_SIZE_EXP
public static final int BYTES_CACH_MAX_SIZE
public static final int BYTES_CACH_MAX_SIZE_EXP
public static CharsetDecoder getUTF8Decoder()
public static void clearChars()
public static char[] getChars(int length)
public static void clearBytes()
public static byte[] getBytes(int length)
Copyright © 2012–2020 Alibaba Group. All rights reserved.