|
@@ -17,7 +17,6 @@ import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.PostConstruct;
|
|
import javax.annotation.PostConstruct;
|
|
import java.util.*;
|
|
import java.util.*;
|
|
-import java.util.concurrent.TimeUnit;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* @author dyp
|
|
* @author dyp
|
|
@@ -25,13 +24,13 @@ import java.util.concurrent.TimeUnit;
|
|
@Service
|
|
@Service
|
|
@Slf4j
|
|
@Slf4j
|
|
public class ViewedService {
|
|
public class ViewedService {
|
|
- private Map<Integer, List<Integer>> viewedTypesMap = new HashMap<>();
|
|
|
|
- private List<Integer> defaultViewedTypes = Lists.newArrayList(1, 6, 7, 5, 8);
|
|
|
|
|
|
+ private final Map<Integer, List<Integer>> viewedTypesMap = new HashMap<>();
|
|
|
|
+ private final List<Integer> defaultViewedTypes = Lists.newArrayList(1, 6, 7, 5, 8);
|
|
|
|
|
|
@Value("${video.filter.url:}")
|
|
@Value("${video.filter.url:}")
|
|
private String videoFilterUrl;
|
|
private String videoFilterUrl;
|
|
|
|
|
|
- private CloseableHttpClient client = HttpClientFactory.create(1000, 1000, 200, 200, 0, 1000);
|
|
|
|
|
|
+ private final CloseableHttpClient client = HttpClientFactory.create(2000, 2000, 200, 200, 0, 2000);
|
|
|
|
|
|
|
|
|
|
@PostConstruct
|
|
@PostConstruct
|