DATAREDIS-1079 - Polishing.

Deprecate old isAutoAck/autoAck methods in favor of isAutoAcknowledge/autoAcknowledge methods with improved names.

Original pull request: #508.
This commit is contained in:
Mark Paluch
2020-01-31 16:16:36 +01:00
parent fccaeb23e9
commit 54229d2388
4 changed files with 54 additions and 28 deletions

View File

@@ -372,11 +372,11 @@ public class StreamMessageListenerContainerIntegrationTests {
}
}
private Integer getNumberOfPending(String stream, String group) {
private int getNumberOfPending(String stream, String group) {
String value = ((List) ((LettuceConnection) connectionFactory.getConnection()).execute("XPENDING",
new NestedMultiOutput(StringCodec.UTF8), new byte[][] { stream.getBytes(), group.getBytes() })).iterator()
.next().toString();
new NestedMultiOutput<>(StringCodec.UTF8), new byte[][] { stream.getBytes(), group.getBytes() })).get(0)
.toString();
return NumberUtils.parseNumber(value, Integer.class);
}