Skip to content

Commit 08a22eb

Browse files
Add interface inheritance to inherit & extend javadocs.
Signed-off-by: Yury-Fridlyand <[email protected]>
1 parent 29cdfa4 commit 08a22eb

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

java/client/src/main/java/glide/api/RedisClusterClient.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,26 +121,24 @@ public CompletableFuture<ClusterValue<String>> info(
121121
Info, options.toArgs(), route, response -> ClusterValue.of(handleObjectResponse(response)));
122122
}
123123

124-
/** {@inheritDoc} The command will be routed automatically to all nodes. */
125124
@Override
126125
public CompletableFuture<String> configRewrite() {
127126
return super.configRewrite();
128127
}
129128

130-
/** {@inheritDoc} The command will be routed automatically to all nodes. */
131129
@Override
132130
public CompletableFuture<String> configResetStat() {
133131
return super.configResetStat();
134132
}
135133

136134
@Override
137-
public CompletableFuture<String> configRewrite(Route route) {
135+
public CompletableFuture<String> configRewrite(@NonNull Route route) {
138136
return commandManager.submitNewCommand(
139137
ConfigRewrite, new String[0], route, this::handleStringResponse);
140138
}
141139

142140
@Override
143-
public CompletableFuture<String> configResetStat(Route route) {
141+
public CompletableFuture<String> configResetStat(@NonNull Route route) {
144142
return commandManager.submitNewCommand(
145143
ConfigResetStat, new String[0], route, this::handleStringResponse);
146144
}

java/client/src/main/java/glide/api/commands/ServerManagementClusterCommands.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
* @see <a href="https://redis.io/commands/?group=server">Server Management Commands</a>
1313
*/
14-
public interface ServerManagementClusterCommands {
14+
public interface ServerManagementClusterCommands extends ServerManagementBaseCommands {
1515

1616
/**
1717
* Get information and statistics about the Redis server. DEFAULT option is assumed. The command
@@ -71,6 +71,12 @@ public interface ServerManagementClusterCommands {
7171
*/
7272
CompletableFuture<ClusterValue<String>> info(InfoOptions options, Route route);
7373

74+
/** {@inheritDoc} The command will be routed automatically to all nodes. */
75+
CompletableFuture<String> configRewrite();
76+
77+
/** {@inheritDoc} The command will be routed automatically to all nodes. */
78+
CompletableFuture<String> configResetStat();
79+
7480
/**
7581
* Rewrite the configuration file with the current configuration.
7682
*

0 commit comments

Comments
 (0)