MediaConstant.java 587 B

123456789101112131415161718192021
  1. package com.zj.common;
  2. import java.util.concurrent.LinkedBlockingDeque;
  3. import java.util.concurrent.ThreadPoolExecutor;
  4. import java.util.concurrent.TimeUnit;
  5. /**
  6. * 常量配置
  7. * @author ZJ
  8. *
  9. */
  10. public class MediaConstant {
  11. //header server名称
  12. public static String serverName = "EasyMedia";
  13. //自定义链式线程池
  14. public static ThreadPoolExecutor threadpool = new ThreadPoolExecutor(20, 500, 60, TimeUnit.SECONDS, new LinkedBlockingDeque<>(), new ThreadPoolExecutor.CallerRunsPolicy());
  15. public static String ffmpegPathKey = "EasyMediaFFmpeg";
  16. }