public static void main(String[] args) {
Jedis r = new Jedis("x.x.x.x", 6379);
r.select(11);
XReadGroupParams p = XReadGroupParams.xReadGroupParams().count(20).noAck();
Map<String, StreamEntryID> entry = Collections.singletonMap("jdddddd", StreamEntryID.UNRECEIVED_ENTRY);
List<Map.Entry<String, List<StreamEntry>>> entries = r.xreadGroup("gggn", "cccn", p, entry);
if (entries != null) {
for (Map.Entry<String, List<StreamEntry>> stringListEntry : entries) {
for (StreamEntry sEntry : stringListEntry.getValue()) {
Map<String, String> fields = sEntry.getFields();
System.out.println(fields);
}
}
}
}