GigaSpaces XAP 7.0 API

com.gigaspaces.client.iterator
Class GSIteratorConfig

java.lang.Object
  extended by com.gigaspaces.client.iterator.GSIteratorConfig

public class GSIteratorConfig
extends Object

Configuration class for GSIterator.

Since:
7.0
Author:
niv
See Also:
GSIterator

Constructor Summary
GSIteratorConfig()
          Default constructor.
GSIteratorConfig(int bufferSize, IteratorScope iteratorScope)
          Constructor for direct initialization of setBufferSize(int) and setIteratorScope(IteratorScope).
 
Method Summary
 int getBufferSize()
          Gets the iterator's buffer size.
 EventSessionConfig getEventSessionConfig()
          Gets the iterator's event session configuration.
 IteratorScope getIteratorScope()
          Gets the iterator's iteration scope.
 long getLeaseDuration()
          Gets the iterator's lease duration.
 void setBufferSize(int value)
          Sets the iterator's buffer size
 void setEventSessionConfig(EventSessionConfig value)
          Sets the iterator's event session configuration.
 void setIteratorScope(IteratorScope value)
          Sets the iterator's iteration scope.
 void setLeaseDuration(long value)
          Sets the iterator's lease duration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GSIteratorConfig

public GSIteratorConfig()
Default constructor.


GSIteratorConfig

public GSIteratorConfig(int bufferSize,
                        IteratorScope iteratorScope)
Constructor for direct initialization of setBufferSize(int) and setIteratorScope(IteratorScope).

Parameters:
bufferSize -
iteratorScope -
Method Detail

getBufferSize

public int getBufferSize()
Gets the iterator's buffer size.

Returns:
Currently configured buffer size.

setBufferSize

public void setBufferSize(int value)
Sets the iterator's buffer size

Parameters:
value - Buffer size.

getIteratorScope

public IteratorScope getIteratorScope()
Gets the iterator's iteration scope.

Returns:
Currently configured iteration scope.

setIteratorScope

public void setIteratorScope(IteratorScope value)
Sets the iterator's iteration scope.

Parameters:
value - Iteration scope.

getLeaseDuration

public long getLeaseDuration()
Gets the iterator's lease duration.

Returns:
Currently configured lease duration.

setLeaseDuration

public void setLeaseDuration(long value)
Sets the iterator's lease duration.

Parameters:
value - lease duration in milliseconds.

getEventSessionConfig

public EventSessionConfig getEventSessionConfig()
Gets the iterator's event session configuration.

Returns:
Current event session configuration.

setEventSessionConfig

public void setEventSessionConfig(EventSessionConfig value)
Sets the iterator's event session configuration.

Parameters:
value - Event session configuration.

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.