Class NearCacheOptions.Builder

java.lang.Object
org.apache.ignite.table.NearCacheOptions.Builder
Enclosing class:
NearCacheOptions

public static class NearCacheOptions.Builder extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • maxEntries

      public NearCacheOptions.Builder maxEntries(long 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

      public NearCacheOptions.Builder expireAfterAccess(int 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

      public NearCacheOptions.Builder expireAfterUpdate(int 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

      public NearCacheOptions.Builder updatePollInterval(int 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.
    • updateLongPollingWaitTimeMs

      public NearCacheOptions.Builder updateLongPollingWaitTimeMs(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 is ContinuousQueryOptions.DFLT_LONG_POLLING_WAIT_TIME_MS if polling is enabled.
      Parameters:
      updateLongPollingWaitTimeMs - Update long polling wait time, in milliseconds.
      Returns:
      This builder instance.
    • build

      public NearCacheOptions build()
      Builds the options.
      Returns:
      Data streamer options.