Package org.apache.ignite.table
Class NearCacheOptions.Builder
java.lang.Object
org.apache.ignite.table.NearCacheOptions.Builder
- Enclosing class:
- NearCacheOptions
Builder.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the options.expireAfterAccess
(int expireAfterAccess) Sets the entry expiration interval after read, in milliseconds.expireAfterUpdate
(int expireAfterUpdate) Sets the entry expiration interval after update, in milliseconds.maxEntries
(long maxEntries) Sets the maximum size of the near cache.updatePollInterval
(int updatePollInterval) Sets the period of time with which updates are requested from the server, in milliseconds.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxEntries
Sets the maximum size of the near cache. Once the maximum size is reached, eviction is triggered.- Parameters:
maxEntries
- Maximum number of entries in the cache. Zero means no limit. Negative values are not allowed- Returns:
- This builder instance.
-
expireAfterAccess
Sets the entry expiration interval after read, in milliseconds. This is the period of time after which the entry is expired and removed from the cache after the last read.- Parameters:
expireAfterAccess
- Expiration interval after read, in milliseconds. Zero means no expiration. Negative values are not allowed.- Returns:
- This builder instance.
-
expireAfterUpdate
Sets the entry expiration interval after update, in milliseconds. This is the period of time after which the entry is expired and removed from the cache after the last update.- Parameters:
expireAfterUpdate
- Expiration interval after update, in milliseconds. Zero means no expiration. Negative values are not allowed.- Returns:
- This builder instance.
-
updatePollInterval
Sets the period of time with which updates are requested from the server, in milliseconds. Zero means update polling is disabled. Negative values are not allowed. The default value is 0 (disabled).- Parameters:
updatePollInterval
- Update polling interval, in milliseconds.- Returns:
- This builder instance.
-
build
Builds the options.- Returns:
- Data streamer options.
-