27
27
28
28
/**
29
29
* Marker interface for configuration classes related to Redis connection setup. As the setup scenarios are quite
30
- * diverse instead of struggling with unifying those, {@link RedisConfiguration} provides means to identify
30
+ * diverse instead of struggling with unifying those, {@code RedisConfiguration} provides means to identify
31
31
* configurations for the individual purposes.
32
32
*
33
33
* @author Christoph Strobl
38
38
public interface RedisConfiguration {
39
39
40
40
/**
41
- * Get the configured database index if the current {@link RedisConfiguration} is
41
+ * Get the configured database index if the current {@code RedisConfiguration} is
42
42
* {@link #isDatabaseIndexAware(RedisConfiguration) database aware} or evaluate and return the value of the given
43
43
* {@link Supplier}.
44
44
*
45
- * @param other a {@code Supplier} whose result is returned if given {@link RedisConfiguration} is not
45
+ * @param other a {@code Supplier} whose result is returned if given {@code RedisConfiguration} is not
46
46
* {@link #isDatabaseIndexAware(RedisConfiguration) database aware}.
47
47
* @return never {@literal null}.
48
48
* @throws IllegalArgumentException if {@code other} is {@literal null}.
@@ -52,11 +52,11 @@ default Integer getDatabaseOrElse(Supplier<Integer> other) {
52
52
}
53
53
54
54
/**
55
- * Get the configured {@link RedisPassword} if the current {@link RedisConfiguration} is
55
+ * Get the configured {@link RedisPassword} if the current {@code RedisConfiguration} is
56
56
* {@link #isAuthenticationAware(RedisConfiguration) password aware} or evaluate and return the value of the given
57
57
* {@link Supplier}.
58
58
*
59
- * @param other a {@code Supplier} whose result is returned if given {@link RedisConfiguration} is not
59
+ * @param other a {@code Supplier} whose result is returned if given {@code RedisConfiguration} is not
60
60
* {@link #isAuthenticationAware(RedisConfiguration) password aware}.
61
61
* @return never {@literal null}.
62
62
* @throws IllegalArgumentException if {@code other} is {@literal null}.
@@ -67,7 +67,7 @@ default RedisPassword getPasswordOrElse(Supplier<RedisPassword> other) {
67
67
68
68
/**
69
69
* @param configuration can be {@literal null}.
70
- * @return {@code true} if given {@link RedisConfiguration} is instance of {@link WithPassword}.
70
+ * @return {@code true} if given {@code RedisConfiguration} is instance of {@link WithPassword}.
71
71
*/
72
72
@ Contract ("null -> false" )
73
73
static boolean isAuthenticationAware (@ Nullable RedisConfiguration configuration ) {
@@ -76,7 +76,7 @@ static boolean isAuthenticationAware(@Nullable RedisConfiguration configuration)
76
76
77
77
/**
78
78
* @param configuration can be {@literal null}.
79
- * @return {@code true} if given {@link RedisConfiguration} is instance of {@link WithDatabaseIndex}.
79
+ * @return {@code true} if given {@code RedisConfiguration} is instance of {@link WithDatabaseIndex}.
80
80
*/
81
81
@ Contract ("null -> false" )
82
82
static boolean isDatabaseIndexAware (@ Nullable RedisConfiguration configuration ) {
@@ -85,7 +85,7 @@ static boolean isDatabaseIndexAware(@Nullable RedisConfiguration configuration)
85
85
86
86
/**
87
87
* @param configuration can be {@literal null}.
88
- * @return {@code true} if given {@link RedisConfiguration} is instance of {@link SentinelConfiguration}.
88
+ * @return {@code true} if given {@code RedisConfiguration} is instance of {@link SentinelConfiguration}.
89
89
*/
90
90
@ Contract ("null -> false" )
91
91
static boolean isSentinelConfiguration (@ Nullable RedisConfiguration configuration ) {
@@ -94,7 +94,7 @@ static boolean isSentinelConfiguration(@Nullable RedisConfiguration configuratio
94
94
95
95
/**
96
96
* @param configuration can be {@literal null}.
97
- * @return {@code true} if given {@link RedisConfiguration} is instance of {@link WithHostAndPort}.
97
+ * @return {@code true} if given {@code RedisConfiguration} is instance of {@link WithHostAndPort}.
98
98
* @since 2.1.6
99
99
*/
100
100
@ Contract ("null -> false" )
@@ -104,7 +104,7 @@ static boolean isHostAndPortAware(@Nullable RedisConfiguration configuration) {
104
104
105
105
/**
106
106
* @param configuration can be {@literal null}.
107
- * @return {@code true} if given {@link RedisConfiguration} is instance of {@link ClusterConfiguration}.
107
+ * @return {@code true} if given {@code RedisConfiguration} is instance of {@link ClusterConfiguration}.
108
108
*/
109
109
@ Contract ("null -> false" )
110
110
static boolean isClusterConfiguration (@ Nullable RedisConfiguration configuration ) {
@@ -113,7 +113,7 @@ static boolean isClusterConfiguration(@Nullable RedisConfiguration configuration
113
113
114
114
/**
115
115
* @param configuration can be {@literal null}.
116
- * @return {@code true} if given {@link RedisConfiguration} is instance of {@link StaticMasterReplicaConfiguration}.
116
+ * @return {@code true} if given {@code RedisConfiguration} is instance of {@link StaticMasterReplicaConfiguration}.
117
117
*/
118
118
@ Contract ("null -> false" )
119
119
static boolean isStaticMasterReplicaConfiguration (@ Nullable RedisConfiguration configuration ) {
@@ -122,7 +122,7 @@ static boolean isStaticMasterReplicaConfiguration(@Nullable RedisConfiguration c
122
122
123
123
/**
124
124
* @param configuration can be {@literal null}.
125
- * @return {@code true} if given {@link RedisConfiguration} is instance of {@link DomainSocketConfiguration}.
125
+ * @return {@code true} if given {@code RedisConfiguration} is instance of {@link DomainSocketConfiguration}.
126
126
*/
127
127
@ Contract ("null -> false" )
128
128
static boolean isDomainSocketConfiguration (@ Nullable RedisConfiguration configuration ) {
@@ -131,7 +131,7 @@ static boolean isDomainSocketConfiguration(@Nullable RedisConfiguration configur
131
131
132
132
/**
133
133
* @param configuration can be {@literal null}.
134
- * @param other a {@code Supplier} whose result is returned if given {@link RedisConfiguration} is not
134
+ * @param other a {@code Supplier} whose result is returned if given {@code RedisConfiguration} is not
135
135
* {@link #isDatabaseIndexAware(RedisConfiguration) database aware}.
136
136
* @return never {@literal null}.
137
137
* @throws IllegalArgumentException if {@code other} is {@literal null}.
@@ -144,7 +144,7 @@ static Integer getDatabaseOrElse(@Nullable RedisConfiguration configuration, Sup
144
144
145
145
/**
146
146
* @param configuration can be {@literal null}.
147
- * @param other a {@code Supplier} whose result is returned if given {@link RedisConfiguration} is not
147
+ * @param other a {@code Supplier} whose result is returned if given {@code RedisConfiguration} is not
148
148
* {@link #isAuthenticationAware(RedisConfiguration) password aware}.
149
149
* @return can be {@literal null}.
150
150
* @throws IllegalArgumentException if {@code other} is {@literal null}.
@@ -158,7 +158,7 @@ static Integer getDatabaseOrElse(@Nullable RedisConfiguration configuration, Sup
158
158
159
159
/**
160
160
* @param configuration can be {@literal null}.
161
- * @param other a {@code Supplier} whose result is returned if given {@link RedisConfiguration} is not
161
+ * @param other a {@code Supplier} whose result is returned if given {@code RedisConfiguration} is not
162
162
* {@link #isAuthenticationAware(RedisConfiguration) password aware}.
163
163
* @return never {@literal null}.
164
164
* @throws IllegalArgumentException if {@code other} is {@literal null}.
@@ -171,7 +171,7 @@ static RedisPassword getPasswordOrElse(@Nullable RedisConfiguration configuratio
171
171
172
172
/**
173
173
* @param configuration can be {@literal null}.
174
- * @param other a {@code Supplier} whose result is returned if given {@link RedisConfiguration} is not
174
+ * @param other a {@code Supplier} whose result is returned if given {@code RedisConfiguration} is not
175
175
* {@link #isHostAndPortAware(RedisConfiguration) port aware}.
176
176
* @return never {@literal null}.
177
177
* @throws IllegalArgumentException if {@code other} is {@literal null}.
@@ -185,7 +185,7 @@ static int getPortOrElse(@Nullable RedisConfiguration configuration, IntSupplier
185
185
186
186
/**
187
187
* @param configuration can be {@literal null}.
188
- * @param other a {@code Supplier} whose result is returned if given {@link RedisConfiguration} is not
188
+ * @param other a {@code Supplier} whose result is returned if given {@code RedisConfiguration} is not
189
189
* {@link #isHostAndPortAware(RedisConfiguration) host aware}.
190
190
* @return never {@literal null}.
191
191
* @throws IllegalArgumentException if {@code other} is {@literal null}.
@@ -198,7 +198,7 @@ static String getHostOrElse(@Nullable RedisConfiguration configuration, Supplier
198
198
}
199
199
200
200
/**
201
- * {@link RedisConfiguration} part suitable for configurations that may use authentication when connecting.
201
+ * {@code RedisConfiguration} part suitable for configurations that may use authentication when connecting.
202
202
*
203
203
* @author Christoph Strobl
204
204
* @author Mark Paluch
@@ -255,7 +255,7 @@ default void setPassword(char @Nullable[] password) {
255
255
}
256
256
257
257
/**
258
- * {@link RedisConfiguration} part suitable for configurations that may use authentication when connecting.
258
+ * {@code RedisConfiguration} part suitable for configurations that may use authentication when connecting.
259
259
*
260
260
* @author Christoph Strobl
261
261
* @since 2.1
@@ -265,7 +265,7 @@ interface WithPassword extends WithAuthentication {
265
265
}
266
266
267
267
/**
268
- * {@link RedisConfiguration} part suitable for configurations that use a specific database.
268
+ * {@code RedisConfiguration} part suitable for configurations that use a specific database.
269
269
*
270
270
* @author Christoph Strobl
271
271
* @since 2.1
@@ -288,7 +288,7 @@ interface WithDatabaseIndex {
288
288
}
289
289
290
290
/**
291
- * {@link RedisConfiguration} part suitable for configurations that use host/port combinations for connecting.
291
+ * {@code RedisConfiguration} part suitable for configurations that use host/port combinations for connecting.
292
292
*
293
293
* @author Christoph Strobl
294
294
* @since 2.1
@@ -323,7 +323,7 @@ interface WithHostAndPort {
323
323
}
324
324
325
325
/**
326
- * {@link RedisConfiguration} part suitable for configurations that use native domain sockets for connecting.
326
+ * {@code RedisConfiguration} part suitable for configurations that use native domain sockets for connecting.
327
327
*
328
328
* @author Christoph Strobl
329
329
* @since 2.1
0 commit comments