Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Struct Lifespan

Represents the lifetime of an operation from creation to timeout.

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: Couchbase.Core
Assembly: Couchbase.NetClient.dll
Syntax
public struct Lifespan

Properties

View Source

CreationTime

Gets or sets the initial creation time of the operation.

Declaration
public DateTime CreationTime { readonly get; set; }
Property Value
Type Description
DateTime

The creation time.

View Source

Duration

Gets or sets the duration of operations lifespan; the interval between creation and timeout.

Declaration
public uint Duration { readonly get; set; }
Property Value
Type Description
uint

The duration.

Methods

View Source

TimedOut()

Checks if the operation has exceeded it's duration; if it has it is flagged as timedout.

Declaration
public bool TimedOut()
Returns
Type Description
bool

True if timed out

  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.