Package org.apache.ignite.table
Class NearCacheOptions
java.lang.Object
org.apache.ignite.table.NearCacheOptions
Near cache options.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic NearCacheOptions.Builderbuilder()Creates a new builder.intGets the entry expiration interval after the last read operation, in milliseconds.intGets the entry expiration interval after the last read operation, in milliseconds.longGets the maximum size of the near cache.toString()intSets the period of time each polling request waits on the server for updates.intThe period of time with which updates are requested from the server in milliseconds.
-
Field Details
-
DEFAULT
Default options.
-
-
Method Details
-
builder
Creates a new builder.- Returns:
- Builder.
-
maxEntries
public long maxEntries()Gets the maximum size of the near cache. Once the maximum size is reached, eviction is triggered.- Returns:
- Maximum cache size. Zero means no limit.
-
expireAfterAccess
public int expireAfterAccess()Gets the entry expiration interval after the last read operation, in milliseconds. This is the period of time after which the entry is expired and removed from the cache after the last read operation.- Returns:
- Expiration interval. Zero means no expiration.
-
expireAfterUpdate
public int expireAfterUpdate()Gets the entry expiration interval after the last read operation, in milliseconds. This is the period of time after which the entry is expired and removed from the cache after the last update operation.- Returns:
- Expiration interval. Zero means no expiration.
-
updatePollInterval
public int updatePollInterval()The period of time with which updates are requested from the server in milliseconds. Negative values are not allowed The default value is 0 (disabled).- Returns:
- Update polling interval. Zero means update polling is disabled.
-
updateLongPollingWaitTimeMs
public int updateLongPollingWaitTimeMs()Sets the period of time each polling request waits on the server for updates. Only used if polling is enabled. Zero means update long polling is disabled; polling requests will return immediately even if there are no updates. Negative values are not allowed. The default value isContinuousQueryOptions.DFLT_LONG_POLLING_WAIT_TIME_MSif polling is enabled.- Returns:
- Update polling wait time. Zero means polling requests return immediately.
-
toString
-