|
|
package com.yoho.search.common.downgrade;
|
|
|
|
|
|
import java.util.concurrent.Executors;
|
|
|
import java.util.concurrent.ScheduledExecutorService;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
|
|
import javax.annotation.PostConstruct;
|
...
|
...
|
@@ -81,7 +79,7 @@ public class DownGradeService { |
|
|
downGradeCacheService.safeAdd(redisKey, result, expireTimeInMinute);
|
|
|
}
|
|
|
|
|
|
private class AutoChangeDownGradeLevel implements Runnable {
|
|
|
class AutoChangeDownGradeLevel implements Runnable {
|
|
|
@Override
|
|
|
public void run() {
|
|
|
try {
|
...
|
...
|
|