public class ConsumerPauseResponse extends ApiResponse<ConsumerPauseResponse>
NO_TYPE, PARSE_ERROR_TYPE| Constructor and Description |
|---|
ConsumerPauseResponse(Message msg)
Construct a ConsumerPauseResponse instance from a message
|
| Modifier and Type | Method and Description |
|---|---|
@Nullable java.time.Duration |
getPauseRemaining()
Returns how much time is remaining for this consumer to be paused
|
@Nullable java.time.ZonedDateTime |
getPauseUntil()
Returns the time until the consumer is paused
|
boolean |
isPaused()
Returns true if the consumer was paused
|
getApiErrorCode, getDescription, getError, getErrorCode, getErrorObject, getJv, getType, hasError, throwOnHasError, toStringpublic ConsumerPauseResponse(Message msg)
msg - the messagepublic boolean isPaused()
public @Nullable java.time.ZonedDateTime getPauseUntil()
public @Nullable java.time.Duration getPauseRemaining()