Class DomainWatcherConfig

java.lang.Object
pl.decerto.hyperon.runtime.sync.WatcherConfig
pl.decerto.hyperon.runtime.sync.DomainWatcherConfig

public class DomainWatcherConfig extends WatcherConfig
This class supports extra configuration for DomainRuntimeWatcher. Here lifespan of domain trees within cache can be defined. If not used, by default 24 hours lifespan will be used.
  • Field Details

    • DEFAULT_LIFESPAN_IN_CACHE_VALUE

      public static final int DEFAULT_LIFESPAN_IN_CACHE_VALUE
      See Also:
    • DEFAULT_LIFESPAN_IN_CACHE_UNIT

      public static final TemporalUnit DEFAULT_LIFESPAN_IN_CACHE_UNIT
  • Constructor Details

    • DomainWatcherConfig

      public DomainWatcherConfig(int watcherStartDelaySeconds, int watcherPauseSeconds, int watcherErrorPauseSeconds)
  • Method Details

    • invalidate

      public WatcherConfig invalidate(int invalidate, TemporalUnit timeUnit)
      Setup lifespan of domain tree within cache.
      Parameters:
      invalidate - value of time
      timeUnit - defined time unit
      Returns:
      same instance of config
    • toString

      public String toString()
      Overrides:
      toString in class WatcherConfig