class ChannelIndexMap
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
ChannelIndexMap.Entry |
Modifier and Type | Field and Description |
---|---|
private int |
count |
private ChannelIndexMap.Entry[] |
data |
private ChannelIndexMap.Entry |
entryPool |
private float |
loadFactor |
private int |
size |
private int |
threshold |
Constructor and Description |
---|
ChannelIndexMap(int size,
float loadFactor) |
Modifier and Type | Method and Description |
---|---|
void |
emptyPool() |
ChannelOutput |
get(long key) |
java.util.Enumeration |
getChannels() |
boolean |
put(long key,
SharedChannelOutput value)
Puts a value into the index if the key does not already exist.
|
private void |
rehash() |
boolean |
remove(long key,
SharedChannelOutput ch) |
private int threshold
private int count
private float loadFactor
private int size
private ChannelIndexMap.Entry[] data
private ChannelIndexMap.Entry entryPool
public ChannelOutput get(long key)
public boolean put(long key, SharedChannelOutput value)
public boolean remove(long key, SharedChannelOutput ch)
private void rehash()
public java.util.Enumeration getChannels()
public void emptyPool()