public final class StoredListFactory extends Object
IStoredList
implementation, according to the Java version the
sources were compiled. This is due to performance profiling conducted on both JDK1.4 and JDK1.5 -
Thus, using 1.4 will return SyncStoredList
, and using 1.5 will return SimpleLockStoredList
.Constructor and Description |
---|
StoredListFactory() |
Modifier and Type | Method and Description |
---|---|
static <T> IStoredList<T> |
createConcurrentList(boolean segmented)
Creates a segmented stored list - used for highly concurrent lists.
|
static <T> IStoredList<T> |
createConcurrentList(boolean segmented,
boolean supportFifoPerSegment)
Creates a segmented stored list - used for highly concurrent lists.
|
static <T> IStoredList<T> |
createConcurrentList(boolean segmented,
boolean supportFifoPerSegment,
Object StoredIndexValueInHashmap)
Creates a segmented stored list - used for highly concurrent lists.
|
static <T> IStoredList<T> |
createConcurrentList(int numOfSegments)
Creates a segmented stored list - used for highly concurrent lists.
|
static <T> IStoredList<T> |
createHashList()
Create Hashed StoredList
|
static <T> IStoredList<T> |
createList(boolean reuseLocks)
Returns a StoredList instance according to the JVM Version.
|
static <T> IOrderedList<T> |
createOrderedList()
Creates an ordered list.
|
static <T> IStoredList<T> |
createRandomScanList(boolean reuseLocks)
Creates a StoredList that can be scanned from random position
|
static <T> IStoredList<T> |
createSegmentedList()
Creates a segmented stored list - used for highly concurrent lists.
|
static <T> AbstractStoredList<T> |
createStoredList(boolean supportsRandomScans,
boolean reuseLocks) |
static <T> IStoredList<T> |
createUniDirectionalConcurrentList(boolean segmented)
create a unidirectional list- removal of elements in not supported, adding is just one CAS
Creates a segmented stored list - used for highly concurrent lists.
|
public static <T> IStoredList<T> createList(boolean reuseLocks)
getStoredList(false,false);
public static <T> IStoredList<T> createRandomScanList(boolean reuseLocks)
public static <T> IOrderedList<T> createOrderedList()
public static <T> IStoredList<T> createSegmentedList()
public static <T> IStoredList<T> createConcurrentList(boolean segmented)
public static <T> IStoredList<T> createConcurrentList(int numOfSegments)
public static <T> IStoredList<T> createConcurrentList(boolean segmented, boolean supportFifoPerSegment)
public static <T> IStoredList<T> createConcurrentList(boolean segmented, boolean supportFifoPerSegment, Object StoredIndexValueInHashmap)
public static <T> IStoredList<T> createUniDirectionalConcurrentList(boolean segmented)
public static <T> AbstractStoredList<T> createStoredList(boolean supportsRandomScans, boolean reuseLocks)
public static <T> IStoredList<T> createHashList()
Copyright © GigaSpaces.