Class SpaceIteratorConfiguration

java.lang.Object
com.gigaspaces.client.iterator.SpaceIteratorConfiguration

public class SpaceIteratorConfiguration extends Object
Configuration class for SpaceIterator
Since:
15.2.0
Author:
Alon Shoham
  • 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

      public SpaceIteratorType getIteratorType()
      Returns:
      The space iterator type being used. For more information see SpaceIteratorType
    • setIteratorType

      public SpaceIteratorConfiguration setIteratorType(SpaceIteratorType iteratorType)
      Sets the space iterator type being used. For more information see SpaceIteratorType
      Parameters:
      iteratorType -
      Returns:
      updated iterator configuration
    • getBatchSize

      public int getBatchSize()
      Returns:
      iterator batch size retrieved from the space
    • setBatchSize

      public SpaceIteratorConfiguration setBatchSize(int batchSize)
      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

      public SpaceIteratorConfiguration setMaxInactiveDuration(java.time.Duration maxInactiveDuration)
      Sets the max duration of an inactive iterator. Note: relevant only to SpaceIteratorType.CURSOR
      Parameters:
      maxInactiveDuration -
      Returns:
      updated configuration
    • getReadModifiers

      public ReadModifiers getReadModifiers()
      Returns:
      ReadModifiers which allows to programmatically control the isolation level this iteration
    • setReadModifiers

      public SpaceIteratorConfiguration setReadModifiers(ReadModifiers readModifiers)
      Sets the ReadModifiers which allows to programmatically control the isolation level this iteration * operation will be performed under.
      Parameters:
      readModifiers -
      Returns:
      updated iterator configuration