GigaSpaces XAP.NET Documentation
CreateSegmentEvictionStrategy<(Of <(TKey, TValue>)>) Method (segmentIndex, totalSegments)
Class LibraryGigaSpaces.Core.Cache.EvictionFifoSegmentEvictionStrategyBuilderCreateSegmentEvictionStrategy<(Of <(TKey, TValue>)>)(Int32, Int32)
Create a instance of IEvictionStrategy<(Of <(TKey, TValue>)>), each segment of the storage will call this method upon construction. This method will be called according to the supplied numberOfSegments parameter times.
Declaration Syntax
C#Visual BasicVisual C++J#
public IEvictionStrategy<TKey, TValue> CreateSegmentEvictionStrategy<TKey, TValue>(
	int segmentIndex,
	int totalSegments
)
Public Function CreateSegmentEvictionStrategy(Of TKey, TValue) ( _
	segmentIndex As Integer, _
	totalSegments As Integer _
) As IEvictionStrategy(Of TKey, TValue)
public:
generic<typename TKey, typename TValue>
virtual IEvictionStrategy<TKey, TValue>^ CreateSegmentEvictionStrategy(
	int segmentIndex, 
	int totalSegments
) sealed
J# supports the use of generic APIs, but not the declaration of new ones.
Generic Template Parameters
TKey
Type of key.
TValue
Type of value.
Parameters
segmentIndex (Int32)
The index of the construcred segment.
totalSegments (Int32)
Total number of segments.
Return Value

Assembly: GigaSpaces.Core (Module: GigaSpaces.Core) Version: 9.1.2.7920 (9.1.2.7920)