/** * Start the polling of target store is required. */ public void startPolling(long delay) { if (store2CachePoller == null) { throw new IllegalStateException("The poller has not been initialize, please check"); } getStore2CachePoller().start(delay); }
/** * Stop the polling of target store is required. */ public void stopPolling() { if (store2CachePoller == null) { throw new IllegalStateException("The poller has not been initialize, please check"); } getStore2CachePoller().stop(); }