public class DefaultFilterWatcher extends Object implements FilterWatcher, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
FilterWatcher.FilterResults
Constructor and Description |
---|
DefaultFilterWatcher() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
long |
getRefreshRateLimitMs() |
void |
inventoryChangeEventHandler(IEvent event) |
void |
setFilterDao(FilterDao filterDao) |
void |
setRefreshRateLimitMs(long refreshRateLimitMs) |
void |
setSessionUtils(SessionUtils sessionUtils) |
Closeable |
watch(String filterRule,
java.util.function.Consumer<FilterWatcher.FilterResults> callback)
Issues callbacks to the given consumer when the results of the filter change.
|
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public void destroy()
destroy
in interface org.springframework.beans.factory.DisposableBean
public Closeable watch(String filterRule, java.util.function.Consumer<FilterWatcher.FilterResults> callback)
FilterWatcher
watch
in interface FilterWatcher
filterRule
- a valid filter rule
if null, or empty the filter will match everythingcallback
- used for callbackspublic void inventoryChangeEventHandler(IEvent event)
public void setRefreshRateLimitMs(long refreshRateLimitMs)
public long getRefreshRateLimitMs()
public void setFilterDao(FilterDao filterDao)
public void setSessionUtils(SessionUtils sessionUtils)
Copyright © 2020. All rights reserved.