class KeyRegistry extends Object
| Modifier and Type | Field and Description |
|---|---|
static KeyRegistry |
EMPTY |
| Constructor and Description |
|---|
KeyRegistry() |
| Modifier and Type | Method and Description |
|---|---|
int |
count(StatsUtil.StatEncoder.KeyType type) |
int |
index(StatsUtil.StatEncoder.KeyType type,
String k)
Given type and key, return the index of which the value of the key should be put at on the buffer
|
KeyRegistry |
register(StatsUtil.StatEncoder.KeyType type,
String... key)
Register the keys with the type
|
KeyRegistry |
withId()
Acronym of register(KeyType.Long, StatKey.ID)
|
public static final KeyRegistry EMPTY
public KeyRegistry register(StatsUtil.StatEncoder.KeyType type, String... key)
type - key - public int index(StatsUtil.StatEncoder.KeyType type, String k)
type - k - public int count(StatsUtil.StatEncoder.KeyType type)
public KeyRegistry withId()
Copyright © 2015–2018 Cloud Software Group, Inc.. All rights reserved.