AppProperties.java 33 KB

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