public class ConsumerInfo extends ApiResponse<ConsumerInfo>
NO_TYPE, PARSE_ERROR_TYPE| Constructor and Description |
|---|
ConsumerInfo(io.nats.client.support.JsonValue jsonValue)
Construct a ConsumerInfo instance from a JsonValue
|
ConsumerInfo(Message msg)
Construct a ConsumerInfo instance from a message
|
| Modifier and Type | Method and Description |
|---|---|
@NonNull SequenceInfo |
getAckFloor()
The highest contiguous acknowledged message
|
long |
getCalculatedPending()
A way to more accurately calculate pending during the initial state
of the consumer when messages may be unaccounted for in flight
|
@Nullable ClusterInfo |
getClusterInfo()
Information about the cluster for clustered environments
|
@NonNull ConsumerConfiguration |
getConsumerConfiguration()
The consumer configuration representing this consumer.
|
@NonNull java.time.ZonedDateTime |
getCreationTime()
Gets the creation time of the consumer.
|
@NonNull SequenceInfo |
getDelivered()
The last message delivered from this Consumer
|
@NonNull java.lang.String |
getName()
A unique name for the consumer, either machine generated or the durable name
|
long |
getNumAckPending()
The number of messages pending acknowledgement
|
long |
getNumPending()
The number of messages left unconsumed in this Consumer
|
long |
getNumWaiting()
The number of pull consumers waiting for messages
|
boolean |
getPaused()
Indicates if the consumer is currently in a paused state
|
@Nullable java.time.Duration |
getPauseRemaining()
When paused the time remaining until unpause
|
@Nullable java.util.List<PriorityGroupState> |
getPriorityGroupStates()
The state of Priority Groups
|
long |
getRedelivered()
The number of redeliveries that have been performed
|
@NonNull java.lang.String |
getStreamName()
The Stream the consumer belongs to
|
@Nullable java.time.ZonedDateTime |
getTimestamp()
Gets the server time the info was gathered
|
boolean |
isPushBound()
Indicates if any client is connected and receiving messages from a push consumer
|
getApiErrorCode, getDescription, getError, getErrorCode, getErrorObject, getJv, getType, hasError, throwOnHasError, toStringpublic ConsumerInfo(Message msg)
msg - the messagepublic ConsumerInfo(io.nats.client.support.JsonValue jsonValue)
jsonValue - the JsonValuepublic @NonNull ConsumerConfiguration getConsumerConfiguration()
public @NonNull java.lang.String getName()
public @NonNull java.lang.String getStreamName()
public @NonNull java.time.ZonedDateTime getCreationTime()
public @NonNull SequenceInfo getDelivered()
public @NonNull SequenceInfo getAckFloor()
public long getNumPending()
public long getNumWaiting()
public long getNumAckPending()
public long getRedelivered()
public boolean getPaused()
public @Nullable java.time.Duration getPauseRemaining()
public @Nullable ClusterInfo getClusterInfo()
public boolean isPushBound()
public @Nullable java.time.ZonedDateTime getTimestamp()
public @Nullable java.util.List<PriorityGroupState> getPriorityGroupStates()
public long getCalculatedPending()