Showing
1 changed file
with
1 additions
and
3 deletions
1 | package com.yoho.search.common.downgrade; | 1 | package com.yoho.search.common.downgrade; |
2 | 2 | ||
3 | -import java.util.concurrent.Executors; | ||
4 | -import java.util.concurrent.ScheduledExecutorService; | ||
5 | import java.util.concurrent.TimeUnit; | 3 | import java.util.concurrent.TimeUnit; |
6 | 4 | ||
7 | import javax.annotation.PostConstruct; | 5 | import javax.annotation.PostConstruct; |
@@ -81,7 +79,7 @@ public class DownGradeService { | @@ -81,7 +79,7 @@ public class DownGradeService { | ||
81 | downGradeCacheService.safeAdd(redisKey, result, expireTimeInMinute); | 79 | downGradeCacheService.safeAdd(redisKey, result, expireTimeInMinute); |
82 | } | 80 | } |
83 | 81 | ||
84 | - private class AutoChangeDownGradeLevel implements Runnable { | 82 | + class AutoChangeDownGradeLevel implements Runnable { |
85 | @Override | 83 | @Override |
86 | public void run() { | 84 | public void run() { |
87 | try { | 85 | try { |
-
Please register or login to post a comment