public final class GridCollections extends Object
ReentrantLock
performs a lot better than standard Java synchronization, these locked wrappers
should perform better as their analogous methods in java.util.Collections class.| Modifier and Type | Method and Description |
|---|---|
static <E> Collection<E> |
lockedCollection(Collection<E> c)
Gets locked collection wrapping given set.
|
static <K,V> Map<K,V> |
lockedMap(Map<K,V> m)
Gets locked map wrapping given map.
|
static <E> Set<E> |
lockedSet(Set<E> s)
Gets locked set wrapping given set.
|
public static <K,V> Map<K,V> lockedMap(Map<K,V> m)
m - Map to wrap into locked implementation.public static <E> Set<E> lockedSet(Set<E> s)
s - Set to wrap into locked implementation.public static <E> Collection<E> lockedCollection(Collection<E> c)
c - Collection to wrap into locked implementation.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC3 Release Date : March 24 2015