Package com.j_spaces.kernel
Class StoredListFactory
java.lang.Object
com.j_spaces.kernel.StoredListFactory
StoredListFactory returns a
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 IStoredList, and using 1.5 will return SimpleLockStoredList.- Since:
- 4.1
- Version:
- 1.0
- Author:
- moran
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> IStoredList<T>createConcurrentList(boolean supportsFifo) Creates a concurrent stored list - used for highly concurrent lists.static <T> IStoredList<T>createConcurrentSegmentedList(boolean supportsFifoPerSegment) Creates a concurrent segmented stored list - used for highly concurrent lists.static <T> IStoredList<T>createConcurrentSegmentedList(boolean segmented, boolean supportFifoPerSegment, Object StoredIndexValueInHashmap) Creates a segmented stored list - used for highly concurrent lists.static <T> IStoredList<T>createConcurrentSegmentedList(boolean supportsFifoPerSegment, int numOfSegments, boolean padded) Creates a concurrent segmented stored list - used for highly concurrent lists.static <T> IStoredList<T>Create Hashed StoredListstatic <T> IStoredList<T>createList(boolean reuseLocks) Returns a StoredList instance according to the JVM Version.static <T> AbstractStoredList<T>createStoredList(boolean supportsRandomScans, boolean reuseLocks)
-
Constructor Details
-
StoredListFactory
public StoredListFactory()
-
-
Method Details
-
createList
Returns a StoredList instance according to the JVM Version. Equivalent to callinggetStoredList(false,false);- Returns:
- StoredList instance with random and SLHolder-Factory set to false.
-
createConcurrentList
Creates a concurrent stored list - used for highly concurrent lists.- Returns:
- IStoredList
-
createConcurrentSegmentedList
Creates a concurrent segmented stored list - used for highly concurrent lists.- Returns:
- IStoredList
-
createConcurrentSegmentedList
public static <T> IStoredList<T> createConcurrentSegmentedList(boolean supportsFifoPerSegment, int numOfSegments, boolean padded) Creates a concurrent segmented stored list - used for highly concurrent lists.- Returns:
- IStoredList
-
createConcurrentSegmentedList
public static <T> IStoredList<T> createConcurrentSegmentedList(boolean segmented, boolean supportFifoPerSegment, Object StoredIndexValueInHashmap) Creates a segmented stored list - used for highly concurrent lists. this SL supports serving as a EconomyConcurrentHashMap HashEntry for storing an index value- Returns:
- oncurrentSegmentedStoredListHashmapEntry
-
createStoredList
public static <T> AbstractStoredList<T> createStoredList(boolean supportsRandomScans, boolean reuseLocks) - Returns:
- StoredList instance according to the given parameters and JVM Version.
-
createHashList
Create Hashed StoredList- Returns:
- HashedSimpleLockIStoredList
-