Package com.gigaspaces.client.iterator
Class SpaceIteratorConfiguration
java.lang.Object
com.gigaspaces.client.iterator.SpaceIteratorConfiguration
Configuration class for
SpaceIterator- Since:
- 15.2.0
- Author:
- Alon Shoham
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new configuration with default values -
Method Summary
Modifier and TypeMethodDescriptionintstatic intstatic java.time.Durationjava.time.DurationsetBatchSize(int batchSize) Sets the iterator batch size retrieved from the spacesetIteratorType(SpaceIteratorType iteratorType) Sets the space iterator type being used.setMaxInactiveDuration(java.time.Duration maxInactiveDuration) Sets the max duration of an inactive iterator.setReadModifiers(ReadModifiers readModifiers) Sets theReadModifierswhich allows to programmatically control the isolation level this iteration * operation will be performed under.
-
Constructor Details
-
SpaceIteratorConfiguration
public SpaceIteratorConfiguration()Constructs a new configuration with default values
-
-
Method Details
-
getDefaultBatchSize
public static int getDefaultBatchSize() -
getDefaultMaxInactiveDuration
public static java.time.Duration getDefaultMaxInactiveDuration() -
getIteratorType
- Returns:
- The space iterator type being used. For more information see
SpaceIteratorType
-
setIteratorType
Sets the space iterator type being used. For more information seeSpaceIteratorType- Parameters:
iteratorType-- Returns:
- updated iterator configuration
-
getBatchSize
public int getBatchSize()- Returns:
- iterator batch size retrieved from the space
-
setBatchSize
Sets the iterator batch size retrieved from the space- Parameters:
batchSize-- Returns:
- updated iterator configuration
-
getMaxInactiveDuration
public java.time.Duration getMaxInactiveDuration()- Returns:
- max duration of an inactive iterator, before it's removed from the space.
iterator activity is automatically renewed, as long as the iterator is not explicitly closed.
Note: relevant only to
SpaceIteratorType.CURSOR
-
setMaxInactiveDuration
Sets the max duration of an inactive iterator. Note: relevant only toSpaceIteratorType.CURSOR- Parameters:
maxInactiveDuration-- Returns:
- updated configuration
-
getReadModifiers
- Returns:
ReadModifierswhich allows to programmatically control the isolation level this iteration
-
setReadModifiers
Sets theReadModifierswhich allows to programmatically control the isolation level this iteration * operation will be performed under.- Parameters:
readModifiers-- Returns:
- updated iterator configuration
-