AppProperties.java 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154
  1. package com.adx.tencent.config;
  2. import org.springframework.boot.context.properties.ConfigurationProperties;
  3. import org.springframework.stereotype.Component;
  4. import java.time.Duration;
  5. import java.util.HashMap;
  6. import java.util.List;
  7. import java.util.Map;
  8. /**
  9. * 全局配置属性类。
  10. * 通过 application.yml 中的 adx.* 前缀绑定。
  11. */
  12. @Component
  13. @ConfigurationProperties(prefix = "adx")
  14. public class AppProperties {
  15. // HTTP Server
  16. private String port = "8787";
  17. // Baidu ADX
  18. private String baiduAdxEndpoint = "http://debug.mobads.baidu.com/jbssp";
  19. private String baiduConversionBaseUrl = "https://media-interact-test.baidu.com";
  20. private String baiduCustomerName;
  21. private String baiduSecret;
  22. private String baiduAuctionPriceEncryption;
  23. private String baiduAuctionPriceEKey;
  24. private String baiduAuctionPriceIKey;
  25. private long baiduMediaId = 0;
  26. private String baiduAppId;
  27. private String baiduTagId;
  28. private String baiduAndroidAppId;
  29. private String baiduIosAppId;
  30. private long baiduBidFloor = 0;
  31. private int baiduActionType = 1;
  32. private int baiduTrackingMaxRedirects = 20;
  33. private int baiduTrackingMax500Retries = 3;
  34. private boolean rtaEnabled = false;
  35. private String rtaEndpoint = "https://rta-gateway.baidu.com:443/rta-proxy";
  36. private Duration rtaTimeout = Duration.ofMillis(800);
  37. private String rtaTuPrefix = "huichuang1213";
  38. private String rtaOrderRedisPrefix = "adx:rta:order:";
  39. private boolean rtaOrderSyncEnabled = true;
  40. private Duration rtaOrderSyncInterval = Duration.ofMinutes(5);
  41. private Duration rtaOrderCacheTtl = Duration.ofMinutes(15);
  42. // Honor Callback
  43. private String honorConversionBaseUrl = "https://ads-drcn.platform.hihonorcloud.com";
  44. private String honorRedisStream = "adx:honor:events";
  45. private String honorChannelId = "9";
  46. private boolean honorConversionSyncEnabled = false;
  47. private Duration honorConversionSyncInterval = Duration.ofSeconds(300);
  48. private int honorConversionSyncDateOffsetDays = 0;
  49. private int honorConversionSyncPageSize = 1;
  50. private List<Integer> honorConversionSyncActs = List.of(1, 2, 3, 4, 5, 6, 7, 8, 9, 2001);
  51. private boolean honorCallbackRetryEnabled = false;
  52. private Duration honorCallbackRetryInterval = Duration.ofSeconds(300);
  53. private int honorCallbackRetryLimit = 100;
  54. private boolean honorTagEventSyncEnabled = false;
  55. private Duration honorTagEventSyncInterval = Duration.ofMinutes(5);
  56. private String honorTagEventSyncRedisPrefix = "";
  57. // Kuaishou Callback
  58. private String kuaishouConversionBaseUrl = "http://ad.partner.gifshow.com/track/activate";
  59. private String kuaishouRedisStream = "adx:kuaishou:events";
  60. private boolean kuaishouCallbackRetryEnabled = false;
  61. private Duration kuaishouCallbackRetryInterval = Duration.ofSeconds(300);
  62. private int kuaishouCallbackRetryLimit = 100;
  63. private boolean kuaishouTagEventSyncEnabled = false;
  64. private Duration kuaishouTagEventSyncInterval = Duration.ofMinutes(5);
  65. private String kuaishouTagEventSyncRedisPrefix = "";
  66. // Vivo Callback
  67. private String vivoConversionBaseUrl = "https://marketing-api.vivo.com.cn";
  68. private String vivoOauthBaseUrl = "https://open-ad.vivo.com.cn";
  69. private String vivoRedisStream = "adx:vivo:events";
  70. private boolean vivoCallbackRetryEnabled = false;
  71. private Duration vivoCallbackRetryInterval = Duration.ofSeconds(300);
  72. private int vivoCallbackRetryLimit = 100;
  73. private boolean vivoTagEventSyncEnabled = false;
  74. private Duration vivoTagEventSyncInterval = Duration.ofMinutes(5);
  75. private String vivoTagEventSyncRedisPrefix = "";
  76. private String vivoRedirectUri;
  77. private String vivoTokenRedisPrefix = "adx:vivo:token:";
  78. private boolean vivoTokenRefreshEnabled = true;
  79. private Duration vivoTokenRefreshInterval = Duration.ofHours(1);
  80. private Duration vivoTokenRefreshAhead = Duration.ofDays(1);
  81. private boolean vivoAdvertiserSyncEnabled = false;
  82. private Duration vivoAdvertiserSyncInterval = Duration.ofMinutes(10);
  83. private String vivoAdvertiserRedisPrefix = "adx:vivo:advertiser:";
  84. // Tencent API
  85. private String tencentApiBaseUrl = "https://api.e.qq.com/v3.0";
  86. private String tencentAccessToken;
  87. private String tencentAccessTokenRedisKey;
  88. private long tencentAccountId;
  89. private long tencentAndroidUserActionSetId;
  90. private long tencentIosUserActionSetId;
  91. // Tencent Act Mapping: baiduAct -> tencentActionType
  92. private Map<Integer, String> tencentActMap = new HashMap<>();
  93. // Redis
  94. private String redisAddr = "127.0.0.1:6379";
  95. private String redisUsername;
  96. private String redisPassword;
  97. private int redisDb = 0;
  98. private String redisStream = "adx:tencent:events";
  99. private long redisStreamMaxLen = 50000;
  100. private Duration bidTtl = Duration.ofDays(3);
  101. private Duration redisConnectTimeout = Duration.ofSeconds(5);
  102. private Duration redisCommandTimeout = Duration.ofSeconds(5);
  103. private Duration redisShutdownTimeout = Duration.ofMillis(100);
  104. private boolean redisValidateConnection = true;
  105. // TiDB
  106. private String tidbUrl;
  107. private String tidbUsername;
  108. private String tidbPassword;
  109. private int tidbMinimumIdle = 2;
  110. private int tidbMaximumPoolSize = 10;
  111. private Duration tidbConnectionTimeout = Duration.ofSeconds(10);
  112. private Duration tidbValidationTimeout = Duration.ofSeconds(3);
  113. private Duration tidbIdleTimeout = Duration.ofMinutes(5);
  114. private Duration tidbMaxLifetime = Duration.ofMinutes(10);
  115. private Duration tidbKeepaliveTime = Duration.ofMinutes(2);
  116. private String reportDatabaseName = "adx_report";
  117. private boolean adBidReportEnabled = false;
  118. private Duration adBidReportInterval = Duration.ofMinutes(5);
  119. private int adBidReportRetentionDays = 30;
  120. private int trackingReportRetentionDays = 3;
  121. private int adBidReportArchiveBatchSize = 5000;
  122. private int adBidReportArchiveMaxBatchesPerRun = 20;
  123. private List<String> adBidReportStatsRunTimes = List.of("01:00", "10:00", "17:00");
  124. private int adBidReportStatsLookbackDays = 7;
  125. // Task Lock
  126. private Duration taskLockTtl = Duration.ofSeconds(120);
  127. private Duration taskLockRenewInterval = Duration.ofSeconds(30);
  128. private Duration taskLockRetryInterval = Duration.ofSeconds(15);
  129. private boolean skipLeaderElection = false;
  130. // Worker
  131. private String workerGroup = "cold-writers";
  132. private String workerConsumer = defaultHostname();
  133. private int workerBatch = 100;
  134. // Conversion Sync
  135. private boolean conversionSyncEnabled = false;
  136. private Duration conversionSyncInterval = Duration.ofSeconds(300);
  137. private int conversionSyncDateOffsetDays = 0;
  138. private int conversionSyncPageSize = 1;
  139. private List<Integer> conversionSyncActs = List.of(1, 2, 3, 4, 5, 6, 7, 8, 9, 2001);
  140. // Callback Retry
  141. private boolean callbackRetryEnabled = false;
  142. private Duration callbackRetryInterval = Duration.ofSeconds(300);
  143. private int callbackRetryLimit = 100;
  144. // Tag Event Sync(广告位回传方式 -> Redis)
  145. private boolean tagEventSyncEnabled = false;
  146. private Duration tagEventSyncInterval = Duration.ofMinutes(5);
  147. private String tagEventSyncRedisPrefix = "";
  148. private boolean accountTagEventSyncEnabled = false;
  149. private Duration accountTagEventSyncInterval = Duration.ofMinutes(5);
  150. private String accountTagEventSyncRedisPrefix = "adx:tencent:account-tag-event:";
  151. private static String defaultHostname() {
  152. try {
  153. return java.net.InetAddress.getLocalHost().getHostName();
  154. } catch (Exception e) {
  155. return "worker-1";
  156. }
  157. }
  158. // ───── getters / setters ─────
  159. public String getPort() {
  160. return port;
  161. }
  162. public void setPort(String port) {
  163. this.port = port;
  164. }
  165. public String getBaiduAdxEndpoint() {
  166. return baiduAdxEndpoint;
  167. }
  168. public void setBaiduAdxEndpoint(String v) {
  169. this.baiduAdxEndpoint = v;
  170. }
  171. public String getBaiduConversionBaseUrl() {
  172. return baiduConversionBaseUrl;
  173. }
  174. public void setBaiduConversionBaseUrl(String v) {
  175. this.baiduConversionBaseUrl = v;
  176. }
  177. public String getBaiduCustomerName() {
  178. return baiduCustomerName;
  179. }
  180. public void setBaiduCustomerName(String v) {
  181. this.baiduCustomerName = v;
  182. }
  183. public String getBaiduSecret() {
  184. return baiduSecret;
  185. }
  186. public void setBaiduSecret(String v) {
  187. this.baiduSecret = v;
  188. }
  189. public String getBaiduAuctionPriceEncryption() {
  190. return baiduAuctionPriceEncryption;
  191. }
  192. public void setBaiduAuctionPriceEncryption(String v) {
  193. this.baiduAuctionPriceEncryption = v;
  194. }
  195. public String getBaiduAuctionPriceEKey() {
  196. return baiduAuctionPriceEKey;
  197. }
  198. public void setBaiduAuctionPriceEKey(String v) {
  199. this.baiduAuctionPriceEKey = v;
  200. }
  201. public String getBaiduAuctionPriceIKey() {
  202. return baiduAuctionPriceIKey;
  203. }
  204. public void setBaiduAuctionPriceIKey(String v) {
  205. this.baiduAuctionPriceIKey = v;
  206. }
  207. public long getBaiduMediaId() {
  208. return baiduMediaId;
  209. }
  210. public void setBaiduMediaId(long v) {
  211. this.baiduMediaId = v;
  212. }
  213. public String getBaiduAppId() {
  214. return baiduAppId;
  215. }
  216. public void setBaiduAppId(String v) {
  217. this.baiduAppId = v;
  218. }
  219. public String getBaiduTagId() {
  220. return baiduTagId;
  221. }
  222. public void setBaiduTagId(String v) {
  223. this.baiduTagId = v;
  224. }
  225. public String getBaiduAndroidAppId() {
  226. return baiduAndroidAppId;
  227. }
  228. public void setBaiduAndroidAppId(String v) {
  229. this.baiduAndroidAppId = v;
  230. }
  231. public String getBaiduIosAppId() {
  232. return baiduIosAppId;
  233. }
  234. public void setBaiduIosAppId(String v) {
  235. this.baiduIosAppId = v;
  236. }
  237. public long getBaiduBidFloor() {
  238. return baiduBidFloor;
  239. }
  240. public void setBaiduBidFloor(long v) {
  241. this.baiduBidFloor = v;
  242. }
  243. public int getBaiduActionType() {
  244. return baiduActionType;
  245. }
  246. public void setBaiduActionType(int v) {
  247. this.baiduActionType = v;
  248. }
  249. public int getBaiduTrackingMaxRedirects() {
  250. return baiduTrackingMaxRedirects;
  251. }
  252. public void setBaiduTrackingMaxRedirects(int v) {
  253. this.baiduTrackingMaxRedirects = v;
  254. }
  255. public int getBaiduTrackingMax500Retries() {
  256. return baiduTrackingMax500Retries;
  257. }
  258. public void setBaiduTrackingMax500Retries(int v) {
  259. this.baiduTrackingMax500Retries = v;
  260. }
  261. public boolean isRtaEnabled() {
  262. return rtaEnabled;
  263. }
  264. public void setRtaEnabled(boolean rtaEnabled) {
  265. this.rtaEnabled = rtaEnabled;
  266. }
  267. public String getRtaEndpoint() {
  268. return rtaEndpoint;
  269. }
  270. public void setRtaEndpoint(String rtaEndpoint) {
  271. this.rtaEndpoint = rtaEndpoint;
  272. }
  273. public Duration getRtaTimeout() {
  274. return rtaTimeout;
  275. }
  276. public void setRtaTimeout(Duration rtaTimeout) {
  277. this.rtaTimeout = rtaTimeout;
  278. }
  279. public String getRtaTuPrefix() {
  280. return rtaTuPrefix;
  281. }
  282. public void setRtaTuPrefix(String rtaTuPrefix) {
  283. this.rtaTuPrefix = rtaTuPrefix;
  284. }
  285. public String getRtaOrderRedisPrefix() {
  286. return rtaOrderRedisPrefix;
  287. }
  288. public void setRtaOrderRedisPrefix(String rtaOrderRedisPrefix) {
  289. this.rtaOrderRedisPrefix = rtaOrderRedisPrefix;
  290. }
  291. public Duration getRtaOrderCacheTtl() {
  292. return rtaOrderCacheTtl;
  293. }
  294. public void setRtaOrderCacheTtl(Duration rtaOrderCacheTtl) {
  295. this.rtaOrderCacheTtl = rtaOrderCacheTtl;
  296. }
  297. public boolean isRtaOrderSyncEnabled() {
  298. return rtaOrderSyncEnabled;
  299. }
  300. public void setRtaOrderSyncEnabled(boolean rtaOrderSyncEnabled) {
  301. this.rtaOrderSyncEnabled = rtaOrderSyncEnabled;
  302. }
  303. public Duration getRtaOrderSyncInterval() {
  304. return rtaOrderSyncInterval;
  305. }
  306. public void setRtaOrderSyncInterval(Duration rtaOrderSyncInterval) {
  307. this.rtaOrderSyncInterval = rtaOrderSyncInterval;
  308. }
  309. public String getHonorConversionBaseUrl() {
  310. return honorConversionBaseUrl;
  311. }
  312. public void setHonorConversionBaseUrl(String v) {
  313. this.honorConversionBaseUrl = v;
  314. }
  315. public String getHonorRedisStream() {
  316. return honorRedisStream;
  317. }
  318. public void setHonorRedisStream(String v) {
  319. this.honorRedisStream = v;
  320. }
  321. public String getHonorChannelId() {
  322. return honorChannelId;
  323. }
  324. public void setHonorChannelId(String v) {
  325. this.honorChannelId = v;
  326. }
  327. public boolean isHonorConversionSyncEnabled() {
  328. return honorConversionSyncEnabled;
  329. }
  330. public void setHonorConversionSyncEnabled(boolean v) {
  331. this.honorConversionSyncEnabled = v;
  332. }
  333. public Duration getHonorConversionSyncInterval() {
  334. return honorConversionSyncInterval;
  335. }
  336. public void setHonorConversionSyncInterval(Duration v) {
  337. this.honorConversionSyncInterval = v;
  338. }
  339. public int getHonorConversionSyncDateOffsetDays() {
  340. return honorConversionSyncDateOffsetDays;
  341. }
  342. public void setHonorConversionSyncDateOffsetDays(int v) {
  343. this.honorConversionSyncDateOffsetDays = v;
  344. }
  345. public int getHonorConversionSyncPageSize() {
  346. return honorConversionSyncPageSize;
  347. }
  348. public void setHonorConversionSyncPageSize(int v) {
  349. this.honorConversionSyncPageSize = v;
  350. }
  351. public List<Integer> getHonorConversionSyncActs() {
  352. return honorConversionSyncActs;
  353. }
  354. public void setHonorConversionSyncActs(List<Integer> v) {
  355. this.honorConversionSyncActs = v;
  356. }
  357. public boolean isHonorCallbackRetryEnabled() {
  358. return honorCallbackRetryEnabled;
  359. }
  360. public void setHonorCallbackRetryEnabled(boolean v) {
  361. this.honorCallbackRetryEnabled = v;
  362. }
  363. public Duration getHonorCallbackRetryInterval() {
  364. return honorCallbackRetryInterval;
  365. }
  366. public void setHonorCallbackRetryInterval(Duration v) {
  367. this.honorCallbackRetryInterval = v;
  368. }
  369. public int getHonorCallbackRetryLimit() {
  370. return honorCallbackRetryLimit;
  371. }
  372. public void setHonorCallbackRetryLimit(int v) {
  373. this.honorCallbackRetryLimit = v;
  374. }
  375. public boolean isHonorTagEventSyncEnabled() {
  376. return honorTagEventSyncEnabled;
  377. }
  378. public void setHonorTagEventSyncEnabled(boolean v) {
  379. this.honorTagEventSyncEnabled = v;
  380. }
  381. public Duration getHonorTagEventSyncInterval() {
  382. return honorTagEventSyncInterval;
  383. }
  384. public void setHonorTagEventSyncInterval(Duration v) {
  385. this.honorTagEventSyncInterval = v;
  386. }
  387. public String getHonorTagEventSyncRedisPrefix() {
  388. return honorTagEventSyncRedisPrefix;
  389. }
  390. public void setHonorTagEventSyncRedisPrefix(String v) {
  391. this.honorTagEventSyncRedisPrefix = v;
  392. }
  393. public String getKuaishouConversionBaseUrl() {
  394. return kuaishouConversionBaseUrl;
  395. }
  396. public void setKuaishouConversionBaseUrl(String v) {
  397. this.kuaishouConversionBaseUrl = v;
  398. }
  399. public String getKuaishouRedisStream() {
  400. return kuaishouRedisStream;
  401. }
  402. public void setKuaishouRedisStream(String v) {
  403. this.kuaishouRedisStream = v;
  404. }
  405. public boolean isKuaishouCallbackRetryEnabled() {
  406. return kuaishouCallbackRetryEnabled;
  407. }
  408. public void setKuaishouCallbackRetryEnabled(boolean v) {
  409. this.kuaishouCallbackRetryEnabled = v;
  410. }
  411. public Duration getKuaishouCallbackRetryInterval() {
  412. return kuaishouCallbackRetryInterval;
  413. }
  414. public void setKuaishouCallbackRetryInterval(Duration v) {
  415. this.kuaishouCallbackRetryInterval = v;
  416. }
  417. public int getKuaishouCallbackRetryLimit() {
  418. return kuaishouCallbackRetryLimit;
  419. }
  420. public void setKuaishouCallbackRetryLimit(int v) {
  421. this.kuaishouCallbackRetryLimit = v;
  422. }
  423. public boolean isKuaishouTagEventSyncEnabled() {
  424. return kuaishouTagEventSyncEnabled;
  425. }
  426. public void setKuaishouTagEventSyncEnabled(boolean v) {
  427. this.kuaishouTagEventSyncEnabled = v;
  428. }
  429. public Duration getKuaishouTagEventSyncInterval() {
  430. return kuaishouTagEventSyncInterval;
  431. }
  432. public void setKuaishouTagEventSyncInterval(Duration v) {
  433. this.kuaishouTagEventSyncInterval = v;
  434. }
  435. public String getKuaishouTagEventSyncRedisPrefix() {
  436. return kuaishouTagEventSyncRedisPrefix;
  437. }
  438. public void setKuaishouTagEventSyncRedisPrefix(String v) {
  439. this.kuaishouTagEventSyncRedisPrefix = v;
  440. }
  441. public String getVivoConversionBaseUrl() {
  442. return vivoConversionBaseUrl;
  443. }
  444. public void setVivoConversionBaseUrl(String v) {
  445. this.vivoConversionBaseUrl = v;
  446. }
  447. public String getVivoOauthBaseUrl() {
  448. return vivoOauthBaseUrl;
  449. }
  450. public void setVivoOauthBaseUrl(String v) {
  451. this.vivoOauthBaseUrl = v;
  452. }
  453. public String getVivoRedisStream() {
  454. return vivoRedisStream;
  455. }
  456. public void setVivoRedisStream(String v) {
  457. this.vivoRedisStream = v;
  458. }
  459. public boolean isVivoCallbackRetryEnabled() {
  460. return vivoCallbackRetryEnabled;
  461. }
  462. public void setVivoCallbackRetryEnabled(boolean v) {
  463. this.vivoCallbackRetryEnabled = v;
  464. }
  465. public Duration getVivoCallbackRetryInterval() {
  466. return vivoCallbackRetryInterval;
  467. }
  468. public void setVivoCallbackRetryInterval(Duration v) {
  469. this.vivoCallbackRetryInterval = v;
  470. }
  471. public int getVivoCallbackRetryLimit() {
  472. return vivoCallbackRetryLimit;
  473. }
  474. public void setVivoCallbackRetryLimit(int v) {
  475. this.vivoCallbackRetryLimit = v;
  476. }
  477. public boolean isVivoTagEventSyncEnabled() {
  478. return vivoTagEventSyncEnabled;
  479. }
  480. public void setVivoTagEventSyncEnabled(boolean v) {
  481. this.vivoTagEventSyncEnabled = v;
  482. }
  483. public Duration getVivoTagEventSyncInterval() {
  484. return vivoTagEventSyncInterval;
  485. }
  486. public void setVivoTagEventSyncInterval(Duration v) {
  487. this.vivoTagEventSyncInterval = v;
  488. }
  489. public String getVivoTagEventSyncRedisPrefix() {
  490. return vivoTagEventSyncRedisPrefix;
  491. }
  492. public void setVivoTagEventSyncRedisPrefix(String v) {
  493. this.vivoTagEventSyncRedisPrefix = v;
  494. }
  495. public String getVivoRedirectUri() {
  496. return vivoRedirectUri;
  497. }
  498. public void setVivoRedirectUri(String v) {
  499. this.vivoRedirectUri = v;
  500. }
  501. public String getVivoTokenRedisPrefix() {
  502. return vivoTokenRedisPrefix;
  503. }
  504. public void setVivoTokenRedisPrefix(String v) {
  505. this.vivoTokenRedisPrefix = v;
  506. }
  507. public boolean isVivoTokenRefreshEnabled() {
  508. return vivoTokenRefreshEnabled;
  509. }
  510. public void setVivoTokenRefreshEnabled(boolean v) {
  511. this.vivoTokenRefreshEnabled = v;
  512. }
  513. public Duration getVivoTokenRefreshInterval() {
  514. return vivoTokenRefreshInterval;
  515. }
  516. public void setVivoTokenRefreshInterval(Duration v) {
  517. this.vivoTokenRefreshInterval = v;
  518. }
  519. public Duration getVivoTokenRefreshAhead() {
  520. return vivoTokenRefreshAhead;
  521. }
  522. public void setVivoTokenRefreshAhead(Duration v) {
  523. this.vivoTokenRefreshAhead = v;
  524. }
  525. public boolean isVivoAdvertiserSyncEnabled() {
  526. return vivoAdvertiserSyncEnabled;
  527. }
  528. public void setVivoAdvertiserSyncEnabled(boolean v) {
  529. this.vivoAdvertiserSyncEnabled = v;
  530. }
  531. public Duration getVivoAdvertiserSyncInterval() {
  532. return vivoAdvertiserSyncInterval;
  533. }
  534. public void setVivoAdvertiserSyncInterval(Duration v) {
  535. this.vivoAdvertiserSyncInterval = v;
  536. }
  537. public String getVivoAdvertiserRedisPrefix() {
  538. return vivoAdvertiserRedisPrefix;
  539. }
  540. public void setVivoAdvertiserRedisPrefix(String v) {
  541. this.vivoAdvertiserRedisPrefix = v;
  542. }
  543. public String getTencentApiBaseUrl() {
  544. return tencentApiBaseUrl;
  545. }
  546. public void setTencentApiBaseUrl(String v) {
  547. this.tencentApiBaseUrl = v;
  548. }
  549. public String getTencentAccessToken() {
  550. return tencentAccessToken;
  551. }
  552. public void setTencentAccessToken(String v) {
  553. this.tencentAccessToken = v;
  554. }
  555. public String getTencentAccessTokenRedisKey() {
  556. return tencentAccessTokenRedisKey;
  557. }
  558. public void setTencentAccessTokenRedisKey(String v) {
  559. this.tencentAccessTokenRedisKey = v;
  560. }
  561. public long getTencentAccountId() {
  562. return tencentAccountId;
  563. }
  564. public void setTencentAccountId(long v) {
  565. this.tencentAccountId = v;
  566. }
  567. public long getTencentAndroidUserActionSetId() {
  568. return tencentAndroidUserActionSetId;
  569. }
  570. public void setTencentAndroidUserActionSetId(long v) {
  571. this.tencentAndroidUserActionSetId = v;
  572. }
  573. public long getTencentIosUserActionSetId() {
  574. return tencentIosUserActionSetId;
  575. }
  576. public void setTencentIosUserActionSetId(long v) {
  577. this.tencentIosUserActionSetId = v;
  578. }
  579. public Map<Integer, String> getTencentActMap() {
  580. return tencentActMap;
  581. }
  582. public void setTencentActMap(Map<Integer, String> v) {
  583. this.tencentActMap = v;
  584. }
  585. public String getRedisAddr() {
  586. return redisAddr;
  587. }
  588. public void setRedisAddr(String v) {
  589. this.redisAddr = v;
  590. }
  591. public String getRedisUsername() {
  592. return redisUsername;
  593. }
  594. public void setRedisUsername(String v) {
  595. this.redisUsername = v;
  596. }
  597. public String getRedisPassword() {
  598. return redisPassword;
  599. }
  600. public void setRedisPassword(String v) {
  601. this.redisPassword = v;
  602. }
  603. public int getRedisDb() {
  604. return redisDb;
  605. }
  606. public void setRedisDb(int v) {
  607. this.redisDb = v;
  608. }
  609. public String getRedisStream() {
  610. return redisStream;
  611. }
  612. public void setRedisStream(String v) {
  613. this.redisStream = v;
  614. }
  615. public long getRedisStreamMaxLen() {
  616. return redisStreamMaxLen;
  617. }
  618. public void setRedisStreamMaxLen(long v) {
  619. this.redisStreamMaxLen = v;
  620. }
  621. public Duration getBidTtl() {
  622. return bidTtl;
  623. }
  624. public void setBidTtl(Duration v) {
  625. this.bidTtl = v;
  626. }
  627. public Duration getRedisConnectTimeout() {
  628. return redisConnectTimeout;
  629. }
  630. public void setRedisConnectTimeout(Duration v) {
  631. this.redisConnectTimeout = v;
  632. }
  633. public Duration getRedisCommandTimeout() {
  634. return redisCommandTimeout;
  635. }
  636. public void setRedisCommandTimeout(Duration v) {
  637. this.redisCommandTimeout = v;
  638. }
  639. public Duration getRedisShutdownTimeout() {
  640. return redisShutdownTimeout;
  641. }
  642. public void setRedisShutdownTimeout(Duration v) {
  643. this.redisShutdownTimeout = v;
  644. }
  645. public boolean isRedisValidateConnection() {
  646. return redisValidateConnection;
  647. }
  648. public void setRedisValidateConnection(boolean v) {
  649. this.redisValidateConnection = v;
  650. }
  651. public String getTidbUrl() {
  652. return tidbUrl;
  653. }
  654. public void setTidbUrl(String v) {
  655. this.tidbUrl = v;
  656. }
  657. public String getTidbUsername() {
  658. return tidbUsername;
  659. }
  660. public void setTidbUsername(String v) {
  661. this.tidbUsername = v;
  662. }
  663. public String getTidbPassword() {
  664. return tidbPassword;
  665. }
  666. public void setTidbPassword(String v) {
  667. this.tidbPassword = v;
  668. }
  669. public int getTidbMinimumIdle() {
  670. return tidbMinimumIdle;
  671. }
  672. public void setTidbMinimumIdle(int v) {
  673. this.tidbMinimumIdle = v;
  674. }
  675. public int getTidbMaximumPoolSize() {
  676. return tidbMaximumPoolSize;
  677. }
  678. public void setTidbMaximumPoolSize(int v) {
  679. this.tidbMaximumPoolSize = v;
  680. }
  681. public Duration getTidbConnectionTimeout() {
  682. return tidbConnectionTimeout;
  683. }
  684. public void setTidbConnectionTimeout(Duration v) {
  685. this.tidbConnectionTimeout = v;
  686. }
  687. public Duration getTidbValidationTimeout() {
  688. return tidbValidationTimeout;
  689. }
  690. public void setTidbValidationTimeout(Duration v) {
  691. this.tidbValidationTimeout = v;
  692. }
  693. public Duration getTidbIdleTimeout() {
  694. return tidbIdleTimeout;
  695. }
  696. public void setTidbIdleTimeout(Duration v) {
  697. this.tidbIdleTimeout = v;
  698. }
  699. public Duration getTidbMaxLifetime() {
  700. return tidbMaxLifetime;
  701. }
  702. public void setTidbMaxLifetime(Duration v) {
  703. this.tidbMaxLifetime = v;
  704. }
  705. public Duration getTidbKeepaliveTime() {
  706. return tidbKeepaliveTime;
  707. }
  708. public void setTidbKeepaliveTime(Duration v) {
  709. this.tidbKeepaliveTime = v;
  710. }
  711. public String getReportDatabaseName() {
  712. return reportDatabaseName;
  713. }
  714. public void setReportDatabaseName(String v) {
  715. this.reportDatabaseName = v;
  716. }
  717. public boolean isAdBidReportEnabled() {
  718. return adBidReportEnabled;
  719. }
  720. public void setAdBidReportEnabled(boolean v) {
  721. this.adBidReportEnabled = v;
  722. }
  723. public Duration getAdBidReportInterval() {
  724. return adBidReportInterval;
  725. }
  726. public void setAdBidReportInterval(Duration v) {
  727. this.adBidReportInterval = v;
  728. }
  729. public int getAdBidReportRetentionDays() {
  730. return adBidReportRetentionDays;
  731. }
  732. public void setAdBidReportRetentionDays(int v) {
  733. this.adBidReportRetentionDays = v;
  734. }
  735. public int getTrackingReportRetentionDays() {
  736. return trackingReportRetentionDays;
  737. }
  738. public void setTrackingReportRetentionDays(int v) {
  739. this.trackingReportRetentionDays = v;
  740. }
  741. public int getAdBidReportArchiveBatchSize() {
  742. return adBidReportArchiveBatchSize;
  743. }
  744. public void setAdBidReportArchiveBatchSize(int v) {
  745. this.adBidReportArchiveBatchSize = v;
  746. }
  747. public int getAdBidReportArchiveMaxBatchesPerRun() {
  748. return adBidReportArchiveMaxBatchesPerRun;
  749. }
  750. public void setAdBidReportArchiveMaxBatchesPerRun(int v) {
  751. this.adBidReportArchiveMaxBatchesPerRun = v;
  752. }
  753. public List<String> getAdBidReportStatsRunTimes() {
  754. return adBidReportStatsRunTimes;
  755. }
  756. public void setAdBidReportStatsRunTimes(List<String> v) {
  757. this.adBidReportStatsRunTimes = v;
  758. }
  759. public int getAdBidReportStatsLookbackDays() {
  760. return adBidReportStatsLookbackDays;
  761. }
  762. public void setAdBidReportStatsLookbackDays(int v) {
  763. this.adBidReportStatsLookbackDays = v;
  764. }
  765. public Duration getTaskLockTtl() {
  766. return taskLockTtl;
  767. }
  768. public void setTaskLockTtl(Duration v) {
  769. this.taskLockTtl = v;
  770. }
  771. public Duration getTaskLockRenewInterval() {
  772. return taskLockRenewInterval;
  773. }
  774. public void setTaskLockRenewInterval(Duration v) {
  775. this.taskLockRenewInterval = v;
  776. }
  777. public Duration getTaskLockRetryInterval() {
  778. return taskLockRetryInterval;
  779. }
  780. public void setTaskLockRetryInterval(Duration v) {
  781. this.taskLockRetryInterval = v;
  782. }
  783. public boolean isSkipLeaderElection() {
  784. return skipLeaderElection;
  785. }
  786. public void setSkipLeaderElection(boolean v) {
  787. this.skipLeaderElection = v;
  788. }
  789. public String getWorkerGroup() {
  790. return workerGroup;
  791. }
  792. public void setWorkerGroup(String v) {
  793. this.workerGroup = v;
  794. }
  795. public String getWorkerConsumer() {
  796. return workerConsumer;
  797. }
  798. public void setWorkerConsumer(String v) {
  799. this.workerConsumer = v;
  800. }
  801. public int getWorkerBatch() {
  802. return workerBatch;
  803. }
  804. public void setWorkerBatch(int v) {
  805. this.workerBatch = v;
  806. }
  807. public boolean isConversionSyncEnabled() {
  808. return conversionSyncEnabled;
  809. }
  810. public void setConversionSyncEnabled(boolean v) {
  811. this.conversionSyncEnabled = v;
  812. }
  813. public Duration getConversionSyncInterval() {
  814. return conversionSyncInterval;
  815. }
  816. public void setConversionSyncInterval(Duration v) {
  817. this.conversionSyncInterval = v;
  818. }
  819. public int getConversionSyncDateOffsetDays() {
  820. return conversionSyncDateOffsetDays;
  821. }
  822. public void setConversionSyncDateOffsetDays(int v) {
  823. this.conversionSyncDateOffsetDays = v;
  824. }
  825. public int getConversionSyncPageSize() {
  826. return conversionSyncPageSize;
  827. }
  828. public void setConversionSyncPageSize(int v) {
  829. this.conversionSyncPageSize = v;
  830. }
  831. public List<Integer> getConversionSyncActs() {
  832. return conversionSyncActs;
  833. }
  834. public void setConversionSyncActs(List<Integer> v) {
  835. this.conversionSyncActs = v;
  836. }
  837. public boolean isCallbackRetryEnabled() {
  838. return callbackRetryEnabled;
  839. }
  840. public void setCallbackRetryEnabled(boolean v) {
  841. this.callbackRetryEnabled = v;
  842. }
  843. public Duration getCallbackRetryInterval() {
  844. return callbackRetryInterval;
  845. }
  846. public void setCallbackRetryInterval(Duration v) {
  847. this.callbackRetryInterval = v;
  848. }
  849. public int getCallbackRetryLimit() {
  850. return callbackRetryLimit;
  851. }
  852. public void setCallbackRetryLimit(int v) {
  853. this.callbackRetryLimit = v;
  854. }
  855. public boolean isTagEventSyncEnabled() {
  856. return tagEventSyncEnabled;
  857. }
  858. public void setTagEventSyncEnabled(boolean v) {
  859. this.tagEventSyncEnabled = v;
  860. }
  861. public Duration getTagEventSyncInterval() {
  862. return tagEventSyncInterval;
  863. }
  864. public void setTagEventSyncInterval(Duration v) {
  865. this.tagEventSyncInterval = v;
  866. }
  867. public String getTagEventSyncRedisPrefix() {
  868. return tagEventSyncRedisPrefix;
  869. }
  870. public void setTagEventSyncRedisPrefix(String v) {
  871. this.tagEventSyncRedisPrefix = v;
  872. }
  873. public boolean isAccountTagEventSyncEnabled() {
  874. return accountTagEventSyncEnabled;
  875. }
  876. public void setAccountTagEventSyncEnabled(boolean v) {
  877. this.accountTagEventSyncEnabled = v;
  878. }
  879. public Duration getAccountTagEventSyncInterval() {
  880. return accountTagEventSyncInterval;
  881. }
  882. public void setAccountTagEventSyncInterval(Duration v) {
  883. this.accountTagEventSyncInterval = v;
  884. }
  885. public String getAccountTagEventSyncRedisPrefix() {
  886. return accountTagEventSyncRedisPrefix;
  887. }
  888. public void setAccountTagEventSyncRedisPrefix(String v) {
  889. this.accountTagEventSyncRedisPrefix = v;
  890. }
  891. }