public sealed class ConnectionDraining : IMessage<ConnectionDraining>, IEquatable<ConnectionDraining>, IDeepCloneable<ConnectionDraining>, IBufferMessage, IMessage
Reference documentation and code samples for the Compute Engine v1 API class ConnectionDraining.
Configures a duration timeout for existing requests on a removed backend instance. For supported load balancers and protocols, as described in Enabling connection draining.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-08 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eConnectionDraining\u003c/code\u003e class in the \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e namespace, found within the \u003ccode\u003eGoogle.Cloud.Compute.V1.dll\u003c/code\u003e assembly, is a message type used to configure connection draining for load balancers.\u003c/p\u003e\n"],["\u003cp\u003eVersion 3.6.0 is the latest version, and this page specifically covers version 3.4.0, but it is also documented that there are many previous versions from 3.3.0 all the way down to 1.0.0 available.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eConnectionDraining\u003c/code\u003e implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionality for message handling, comparison, deep cloning, and buffer operations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eConnectionDraining\u003c/code\u003e class contains a \u003ccode\u003eDrainingTimeoutSec\u003c/code\u003e property, which is an integer that configures the timeout for existing requests on a removed backend instance, and a \u003ccode\u003eHasDrainingTimeoutSec\u003c/code\u003e that checks if the draining timeout field is set.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, \u003ccode\u003eConnectionDraining()\u003c/code\u003e and \u003ccode\u003eConnectionDraining(ConnectionDraining other)\u003c/code\u003e, that are provided to create instances, one being empty and one that allows for the passing of another connectionDraining parameter.\u003c/p\u003e\n"]]],[],null,[]]