Package com.google.cloud.pubsub.v1
Class SubscriberShutdownSettings.Builder
java.lang.Object
com.google.cloud.pubsub.v1.SubscriberShutdownSettings.Builder
- Enclosing class:
- SubscriberShutdownSettings
Builder for
SubscriberShutdownSettings.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofSubscriberShutdownSettings.Sets the shutdown mode.setTimeout(Duration timeout) Sets the shutdown timeout.
-
Method Details
-
setMode
Sets the shutdown mode. Defaults toSubscriberShutdownSettings.ShutdownMode.WAIT_FOR_PROCESSING. -
setTimeout
Sets the shutdown timeout. Defaults to a negative duration, indicating no timeout.A positive duration specifies the maximum time to wait for shutdown to complete. A duration of zero indicates an immediate, forceful shutdown. A negative duration indicates an indefinite wait.
-
build
Builds an instance ofSubscriberShutdownSettings.
-