Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class TransactionReplaceOptionsBuilder

Inheritance
object
TransactionReplaceOptionsBuilder
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Couchbase.Client.Transactions.Config
Assembly: Couchbase.NetClient.dll
Syntax
public class TransactionReplaceOptionsBuilder

Properties

View Source

Default

This creates a new builder with the default values (if any) for this builder.

Declaration
public static TransactionReplaceOptionsBuilder Default { get; }
Property Value
Type Description
TransactionReplaceOptionsBuilder

Methods

View Source

Build()

Builds a new independent instance of TransactionReplaceOptions, based on the current state of this builder. Note that if you call Build multiple times, you will have multiple independent instances of the options.

Declaration
public TransactionReplaceOptions Build()
Returns
Type Description
TransactionReplaceOptions

A TransactionReplaceOptions instance.

View Source

Create()

Creates a new instance of TransactionReplaceOptionsBuilder.

Declaration
public static TransactionReplaceOptionsBuilder Create()
Returns
Type Description
TransactionReplaceOptionsBuilder
View Source

Expiry(TimeSpan)

Declaration
public TransactionReplaceOptionsBuilder Expiry(TimeSpan expiry)
Parameters
Type Name Description
TimeSpan expiry
Returns
Type Description
TransactionReplaceOptionsBuilder
View Source

Span(IRequestSpan)

Specifies a parent span for any tracing spans this operation creates.

Declaration
public TransactionReplaceOptionsBuilder Span(IRequestSpan span)
Parameters
Type Name Description
IRequestSpan span

The desired parent tracing span.

Returns
Type Description
TransactionReplaceOptionsBuilder
View Source

Transcoder(ITypeTranscoder)

Specify a specific Transcoder to use when performing the transactional GET. If none is specified, we default to JsonTranscoder

Declaration
public TransactionReplaceOptionsBuilder Transcoder(ITypeTranscoder transcoder)
Parameters
Type Name Description
ITypeTranscoder transcoder
Returns
Type Description
TransactionReplaceOptionsBuilder
  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.