diff --git a/pom.xml b/pom.xml
index 03460ee..899f8a0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -172,7 +172,7 @@
io.projectreactor
reactor-core
- 3.6.4
+ 3.6.8
com.salesforce.servicelibs
diff --git a/src/main/java/it/cavallium/rockserver/core/common/RequestType.java b/src/main/java/it/cavallium/rockserver/core/common/RequestType.java
index ddc8073..fdef751 100644
--- a/src/main/java/it/cavallium/rockserver/core/common/RequestType.java
+++ b/src/main/java/it/cavallium/rockserver/core/common/RequestType.java
@@ -19,7 +19,8 @@ public sealed interface RequestType {
CHANGED(new RequestChanged()),
PREVIOUS_PRESENCE(new RequestPreviousPresence()),
FIRST_AND_LAST(new RequestGetFirstAndLast()),
- ALL_IN_RANGE(new RequestGetAllInRange());
+ ALL_IN_RANGE(new RequestGetAllInRange()),
+ ENTRIES_COUNT(new RequestEntriesCount());
private final RequestType requestType;
@@ -99,6 +100,11 @@ public sealed interface RequestType {
return (RequestGetFirstAndLast) RequestGetFirstAndLast.INSTANCE;
}
+ @SuppressWarnings("unchecked")
+ static RequestEntriesCount entriesCount() {
+ return (RequestEntriesCount) RequestEntriesCount.INSTANCE;
+ }
+
@SuppressWarnings("unchecked")
static RequestGetAllInRange allInRange() {
return (RequestGetAllInRange) RequestGetAllInRange.INSTANCE;
@@ -222,6 +228,16 @@ public sealed interface RequestType {
}
}
+ record RequestEntriesCount() implements RequestReduceRange {
+
+ private static final RequestEntriesCount