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.Builder
builder()
Creates a new builder.int
Gets the entry expiration interval after the last read operation, in milliseconds.int
Gets the entry expiration interval after the last read operation, in milliseconds.long
Gets the maximum size of the near cache.toString()
int
The 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.
-
toString
-