Class PauseResponse
-
- All Implemented Interfaces:
public final class PauseResponseResponse from pause operation
-
-
Field Summary
Fields Modifier and Type Field Description private final Booleanpausedprivate final InstantpauseUntil
-
Constructor Summary
Constructors Constructor Description PauseResponse(Boolean paused, Instant pauseUntil)
-
Method Summary
Modifier and Type Method Description final BooleangetPaused()Whether the consumer is paused - always true for a successful pause final InstantgetPauseUntil()When the consumer will be automatically resumed, or null when it stays paused until explicitly resumed final BooleanwillAutoResume()Check if the consumer is scheduled for automatic resume -
-
Method Detail
-
getPaused
final Boolean getPaused()
Whether the consumer is paused - always true for a successful pause
-
getPauseUntil
final Instant getPauseUntil()
When the consumer will be automatically resumed, or null when it stays paused until explicitly resumed
-
willAutoResume
final Boolean willAutoResume()
Check if the consumer is scheduled for automatic resume
- Returns:
true if pauseUntil is set, false otherwise
-
-
-
-