@@ -1341,27 +1341,29 @@ public String toString() {
13411341 }
13421342 };
13431343
1344- public static final Builder <List <StreamConsumerInfo >> STREAM_CONSUMER_INFO_LIST = new Builder <List <StreamConsumerInfo >>() {
1344+ // TODO: rename to STREAM_CONSUMER_INFO_LIST ?
1345+ public static final Builder <List <StreamConsumersInfo >> STREAM_CONSUMERS_INFO_LIST
1346+ = new Builder <List <StreamConsumersInfo >>() {
13451347
13461348 Map <String , Builder > mappingFunctions = createDecoderMap ();
13471349
13481350 private Map <String , Builder > createDecoderMap () {
13491351 Map <String , Builder > tempMappingFunctions = new HashMap <>();
1350- tempMappingFunctions .put (StreamConsumerInfo .NAME , STRING );
1351- tempMappingFunctions .put (StreamConsumerInfo .IDLE , LONG );
1352- tempMappingFunctions .put (StreamConsumerInfo .PENDING , LONG );
1352+ tempMappingFunctions .put (StreamConsumersInfo .NAME , STRING );
1353+ tempMappingFunctions .put (StreamConsumersInfo .IDLE , LONG );
1354+ tempMappingFunctions .put (StreamConsumersInfo .PENDING , LONG );
13531355 return tempMappingFunctions ;
13541356
13551357 }
13561358
13571359 @ Override
13581360 @ SuppressWarnings ("unchecked" )
1359- public List <StreamConsumerInfo > build (Object data ) {
1361+ public List <StreamConsumersInfo > build (Object data ) {
13601362 if (null == data ) {
13611363 return null ;
13621364 }
13631365
1364- List <StreamConsumerInfo > list = new ArrayList <>();
1366+ List <StreamConsumersInfo > list = new ArrayList <>();
13651367 List <Object > streamsEntries = (List <Object >) data ;
13661368 Iterator <Object > groupsArray = streamsEntries .iterator ();
13671369
@@ -1371,7 +1373,7 @@ public List<StreamConsumerInfo> build(Object data) {
13711373
13721374 Iterator <Object > consumerInfoIterator = groupInfo .iterator ();
13731375
1374- StreamConsumerInfo streamGroupInfo = new StreamConsumerInfo (
1376+ StreamConsumersInfo streamGroupInfo = new StreamConsumersInfo (
13751377 createMapFromDecodingFunctions (consumerInfoIterator , mappingFunctions ));
13761378 list .add (streamGroupInfo );
13771379
@@ -1475,7 +1477,8 @@ public String toString() {
14751477 }
14761478 };
14771479
1478- public static final Builder <StreamFullInfo > STREAM_FULL_INFO = new Builder <StreamFullInfo >() {
1480+ // TODO: raname to STREAM_FULL_INFO ?
1481+ public static final Builder <StreamFullInfo > STREAM_INFO_FULL = new Builder <StreamFullInfo >() {
14791482
14801483 final Map <String , Builder > mappingFunctions = createDecoderMap ();
14811484
0 commit comments