/status gibt auch den `username` des Clients aus
authorKai Moritz <kai@juplo.de>
Sat, 2 Apr 2022 20:30:01 +0000 (22:30 +0200)
committerKai Moritz <kai@juplo.de>
Sat, 2 Apr 2022 20:44:05 +0000 (22:44 +0200)
src/main/java/de/juplo/kafka/RestClient.java

index 689d672..38fd655 100644 (file)
@@ -122,24 +122,27 @@ public class RestClient implements Callable<Long>
 
   public synchronized Status getStatus()
   {
-    return new Status(running, pending, offsets, failures);
+    return new Status(username, running, pending, offsets, failures);
   }
 
 
   @Getter
   public class Status
   {
+    String username;
     boolean running;
     Set<Long> pending;
     Map<Integer, Long> offsets;
     List<RestFailure> failures;
 
     private Status(
+        String username,
         boolean running,
         Set<Long> pending,
         Map<Integer, Long> offsets,
         List<RestFailure> failures)
     {
+      this.username = username;
       this.running = running;
       guarded(() ->
       {