| .. | .. |
|---|
| 20 | 20 | @Singleton |
|---|
| 21 | 21 | public class CacheTTL { |
|---|
| 22 | 22 | |
|---|
| 23 | | - private static final Logger log = LogManager.getLogger(CacheTTL.class); |
|---|
| 23 | + private static final Logger LOG = LogManager.getLogger(CacheTTL.class); |
|---|
| 24 | 24 | |
|---|
| 25 | 25 | /** |
|---|
| 26 | 26 | * Period before token expires, set in seconds. |
|---|
| .. | .. |
|---|
| 42 | 42 | // We check for expired object every 60 seconds |
|---|
| 43 | 43 | Thread.sleep(60 * 1000); |
|---|
| 44 | 44 | } catch (InterruptedException e) { |
|---|
| 45 | | - log.error("Exiting from Cache Thread"); |
|---|
| 45 | + LOG.error("Exiting from Cache Thread"); |
|---|
| 46 | 46 | data.clear(); |
|---|
| 47 | 47 | return; |
|---|
| 48 | 48 | } |
|---|
| 49 | | - // log.info("Cheking expired objects " + new Date()); |
|---|
| 49 | + // LOG.info("Cheking expired objects " + new Date()); |
|---|
| 50 | 50 | Date now = new Date(); |
|---|
| 51 | 51 | List<String> keysToRemove = new ArrayList<>(); |
|---|
| 52 | 52 | for (String key : CacheTTL.this.data.keySet()) { |
|---|