Package com.google.cloud.pubsub.v1
Class SubscriberShutdownSettings
java.lang.Object
com.google.cloud.pubsub.v1.SubscriberShutdownSettings
Settings for configuring the shutdown behavior of a
Subscriber.
This class allows customization of how the subscriber handles outstanding messages during shutdown, including whether to wait for processing to complete or to immediately nack messages, and an optional timeout for the shutdown process.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder forSubscriberShutdownSettings.static enumDefines the behavior for handling outstanding messages during subscriber shutdown. -
Method Summary
Modifier and TypeMethodDescriptiongetMode()Returns the configured shutdown mode.Returns the configured shutdown timeout.Returns a new builder forSubscriberShutdownSettings.
-
Method Details
-
getMode
Returns the configured shutdown mode. -
getTimeout
Returns the configured shutdown timeout. A negative duration indicates no timeout. -
newBuilder
Returns a new builder forSubscriberShutdownSettings.
-