Class NearCacheOptions

java.lang.Object
org.apache.ignite.table.NearCacheOptions

public class NearCacheOptions extends Object
Near cache options.
  • Field Details

  • Method Details

    • builder

      public static NearCacheOptions.Builder 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

      public String toString()
      Overrides:
      toString in class Object