Class DefaultFilterWatcher

  • All Implemented Interfaces:
    FilterWatcher, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

    public class DefaultFilterWatcher
    extends Object
    implements FilterWatcher, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
    • Constructor Detail

      • DefaultFilterWatcher

        public DefaultFilterWatcher()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • destroy

        public void destroy()
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean
      • watch

        public Closeable watch​(String filterRule,
                               java.util.function.Consumer<FilterWatcher.FilterResults> callback)
        Description copied from interface: FilterWatcher
        Issues callbacks to the given consumer when the results of the filter change. A callback is expected to be issued immediately when the watch session is started. Additional callback will be made if/when the results change.
        Specified by:
        watch in interface FilterWatcher
        Parameters:
        filterRule - a valid filter rule if null, or empty the filter will match everything
        callback - used for callbacks
        Returns:
        close when done watching
      • inventoryChangeEventHandler

        public void inventoryChangeEventHandler​(IEvent event)
      • setRefreshRateLimitMs

        public void setRefreshRateLimitMs​(long refreshRateLimitMs)
      • getRefreshRateLimitMs

        public long getRefreshRateLimitMs()
      • setFilterDao

        public void setFilterDao​(FilterDao filterDao)
      • setSessionUtils

        public void setSessionUtils​(SessionUtils sessionUtils)