public static class StreamInfo.XInfoConsumers extends Object
| Constructor and Description |
|---|
XInfoConsumers(String groupName,
List<Object> raw) |
| Modifier and Type | Method and Description |
|---|---|
void |
forEach(Consumer<? super StreamInfo.XInfoConsumer> action)
Performs the given action on every available
StreamInfo.XInfoConsumer of this StreamInfo.XInfoConsumers. |
static StreamInfo.XInfoConsumers |
fromList(String groupName,
List<Object> source) |
StreamInfo.XInfoConsumer |
get(int index)
Returns the
StreamInfo.XInfoConsumer element at the given index. |
int |
getConsumerCount()
Total number of consumers in the consumer group.
|
boolean |
isEmpty() |
Iterator<StreamInfo.XInfoConsumer> |
iterator()
Returns an iterator over the
StreamInfo.XInfoConsumer elements. |
int |
size()
Returns the number of
StreamInfo.XInfoConsumer available. |
Stream<StreamInfo.XInfoConsumer> |
stream()
Returns a sequential
Stream of StreamInfo.XInfoConsumer. |
String |
toString() |
public static StreamInfo.XInfoConsumers fromList(String groupName, List<Object> source)
public int getConsumerCount()
public int size()
StreamInfo.XInfoConsumer available.getConsumerCount()public boolean isEmpty()
public Iterator<StreamInfo.XInfoConsumer> iterator()
StreamInfo.XInfoConsumer elements.public StreamInfo.XInfoConsumer get(int index)
StreamInfo.XInfoConsumer element at the given index.IndexOutOfBoundsException - if the index is out of range.public Stream<StreamInfo.XInfoConsumer> stream()
Stream of StreamInfo.XInfoConsumer.public void forEach(Consumer<? super StreamInfo.XInfoConsumer> action)
StreamInfo.XInfoConsumer of this StreamInfo.XInfoConsumers.action - Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.