@param timeout The timeout reference.
(final Timeout timeout)
| 180 | |
| 181 | /** @param timeout The timeout reference. */ |
| 182 | @Override |
| 183 | public void run(final Timeout timeout) { |
| 184 | try { |
| 185 | loadFromFile(); |
| 186 | } catch (RuntimeException e) { |
| 187 | LOG.error("Failed to read cache file on auto reload: " + this, e); |
| 188 | } finally { |
| 189 | timer.newTimeout(this, reload_interval, TimeUnit.SECONDS); |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | /** |
| 194 | * Attempts to load the file from disk |