Class BufferOptions (5.0.0)

public sealed class BufferOptions

Options that define a buffer.

Inheritance

Object > BufferOptions

Namespace

Google.Cloud.Diagnostics.Common

Assembly

Google.Cloud.Diagnostics.Common.dll

Properties

BufferSizeBytes

public int BufferSizeBytes { get; }

The size of the buffer in bytes, only used for Sized

Property Value
TypeDescription
Int32

BufferType

public BufferType BufferType { get; }

The type of buffer to be used.

Property Value
TypeDescription
BufferType

BufferWaitTime

public TimeSpan BufferWaitTime { get; }

The time to wait before the buffer is flushed, only used for Timed

Property Value
TypeDescription
TimeSpan

Methods

NoBuffer()

public static BufferOptions NoBuffer()

Create BufferOptions for None

Returns
TypeDescription
BufferOptions

SizedBuffer(Int32)

public static BufferOptions SizedBuffer(int bufferSizeBytes = 65536)

Create BufferOptions for Sized

Parameter
NameDescription
bufferSizeBytesInt32

Optional, The buffer size in bytes.

Returns
TypeDescription
BufferOptions

TimedBuffer(Nullable<TimeSpan>)

public static BufferOptions TimedBuffer(TimeSpan? bufferWaitTime = null)

Create BufferOptions for Timed

Parameter
NameDescription
bufferWaitTimeNullable<TimeSpan>

Optional, The minimum amount of time between flushes.

Returns
TypeDescription
BufferOptions