public final class MapAdaptor extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COPY_MAX_ITEMS_MAX_PROP |
static int |
DEFAULT_COPY_MAX_ITEMS |
static int |
DEFAULT_PERSIST_MIN_ITEMS |
static String |
PERSIST_MIN_ITEMS_PROP |
Modifier and Type | Method and Description |
---|---|
static MapAdaptor |
getDefaultInstance()
Return the default-configured instance.
|
static MapAdaptor |
getInstance(boolean useSingleton,
int copyMaxItems,
int persistMinItems) |
<K,V> Map<K,V> |
initialSnapshot(int expectedSize)
Creates an initial snapshot.
|
<K,V> Map<K,V> |
optimize(Map<K,V> input)
Input will be thrown away, result will be retained for read-only access or
takeSnapshot(Map) purposes. |
<K,V> Map<K,V> |
takeSnapshot(Map<K,V> input)
Input is treated is supposed to be left unmodified, result must be mutable.
|
public static final int DEFAULT_COPY_MAX_ITEMS
public static final String COPY_MAX_ITEMS_MAX_PROP
public static final int DEFAULT_PERSIST_MIN_ITEMS
public static final String PERSIST_MIN_ITEMS_PROP
public static MapAdaptor getDefaultInstance()
public static MapAdaptor getInstance(boolean useSingleton, int copyMaxItems, int persistMinItems)
public <K,V> Map<K,V> initialSnapshot(int expectedSize)
expectedSize
- Expected map sizepublic <K,V> Map<K,V> takeSnapshot(Map<K,V> input)
input
- public <K,V> Map<K,V> optimize(Map<K,V> input)
takeSnapshot(Map)
purposes.input
- Copyright © 2017 OpenDaylight. All rights reserved.