From 80b6cbfc9c861469146318d0b3dd5f8b8b525b8a Mon Sep 17 00:00:00 2001
From: xiejun <xiejun@vci-tech.com>
Date: 星期五, 01 十一月 2024 15:11:19 +0800
Subject: [PATCH] Revert "集成获取mdm分发通用数据格式接口集成"

---
 Source/BladeX-Tool/blade-starter-redis/src/main/java/org/springblade/core/redis/lock/BladeLockProperties.java |  105 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 105 insertions(+), 0 deletions(-)

diff --git a/Source/BladeX-Tool/blade-starter-redis/src/main/java/org/springblade/core/redis/lock/BladeLockProperties.java b/Source/BladeX-Tool/blade-starter-redis/src/main/java/org/springblade/core/redis/lock/BladeLockProperties.java
new file mode 100644
index 0000000..8667445
--- /dev/null
+++ b/Source/BladeX-Tool/blade-starter-redis/src/main/java/org/springblade/core/redis/lock/BladeLockProperties.java
@@ -0,0 +1,105 @@
+/*
+ *      Copyright (c) 2018-2028, DreamLu All rights reserved.
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions are met:
+ *
+ *  Redistributions of source code must retain the above copyright notice,
+ *  this list of conditions and the following disclaimer.
+ *  Redistributions in binary form must reproduce the above copyright
+ *  notice, this list of conditions and the following disclaimer in the
+ *  documentation and/or other materials provided with the distribution.
+ *  Neither the name of the dreamlu.net developer nor the names of its
+ *  contributors may be used to endorse or promote products derived from
+ *  this software without specific prior written permission.
+ *  Author: DreamLu 鍗㈡槬姊� (596392912@qq.com)
+ */
+
+package org.springblade.core.redis.lock;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * 鍒嗗竷寮忛攣閰嶇疆
+ *
+ * @author L.cm
+ */
+@Getter
+@Setter
+@ConfigurationProperties(BladeLockProperties.PREFIX)
+public class BladeLockProperties {
+	public static final String PREFIX = "blade.lock";
+
+	/**
+	 * 鏄惁寮�鍚細榛樿涓猴細false锛屼究浜庣敓鎴愰厤缃彁绀恒��
+	 */
+	private Boolean enabled = Boolean.FALSE;
+	/**
+	 * 鍗曟満閰嶇疆锛歳edis 鏈嶅姟鍦板潃
+	 */
+	private String address = "redis://127.0.0.1:6379";
+	/**
+	 * 瀵嗙爜閰嶇疆
+	 */
+	private String password;
+	/**
+	 * db
+	 */
+	private Integer database = 0;
+	/**
+	 * 杩炴帴姹犲ぇ灏�
+	 */
+	private Integer poolSize = 20;
+	/**
+	 * 鏈�灏忕┖闂茶繛鎺ユ暟
+	 */
+	private Integer idleSize = 5;
+	/**
+	 * 杩炴帴绌洪棽瓒呮椂锛屽崟浣嶏細姣
+	 */
+	private Integer idleTimeout = 60000;
+	/**
+	 * 杩炴帴瓒呮椂锛屽崟浣嶏細姣
+	 */
+	private Integer connectionTimeout = 3000;
+	/**
+	 * 鍛戒护绛夊緟瓒呮椂锛屽崟浣嶏細姣
+	 */
+	private Integer timeout = 10000;
+	/**
+	 * 闆嗙兢妯″紡锛屽崟鏈猴細single锛屼富浠庯細master锛屽摠鍏垫ā寮忥細sentinel锛岄泦缇ゆā寮忥細cluster
+	 */
+	private Mode mode = Mode.single;
+	/**
+	 * 涓讳粠妯″紡锛屼富鍦板潃
+	 */
+	private String masterAddress;
+	/**
+	 * 涓讳粠妯″紡锛屼粠鍦板潃
+	 */
+	private String[] slaveAddress;
+	/**
+	 * 鍝ㄥ叺妯″紡锛氫富鍚嶇О
+	 */
+	private String masterName;
+	/**
+	 * 鍝ㄥ叺妯″紡鍦板潃
+	 */
+	private String[] sentinelAddress;
+	/**
+	 * 闆嗙兢妯″紡鑺傜偣鍦板潃
+	 */
+	private String[] nodeAddress;
+
+	public enum Mode {
+		/**
+		 * 闆嗙兢妯″紡锛屽崟鏈猴細single锛屼富浠庯細master锛屽摠鍏垫ā寮忥細sentinel锛岄泦缇ゆā寮忥細cluster
+		 */
+		single,
+		master,
+		sentinel,
+		cluster
+	}
+}

--
Gitblit v1.9.3