public sealed class BufferOptionsOptions that define a buffer.
Namespace
Google.Cloud.Diagnostics.CommonAssembly
Google.Cloud.Diagnostics.Common.dll
Properties
BufferSizeBytes
public int BufferSizeBytes { get; }The size of the buffer in bytes, only used for Sized
| Property Value | |
|---|---|
| Type | Description |
Int32 |
|
BufferType
public BufferType BufferType { get; }The type of buffer to be used.
| Property Value | |
|---|---|
| Type | Description |
BufferType |
|
BufferWaitTime
public TimeSpan BufferWaitTime { get; }The time to wait before the buffer is flushed, only used for Timed
| Property Value | |
|---|---|
| Type | Description |
TimeSpan |
|
Methods
NoBuffer()
public static BufferOptions NoBuffer()Create BufferOptions for None
| Returns | |
|---|---|
| Type | Description |
BufferOptions |
|
SizedBuffer(Int32)
public static BufferOptions SizedBuffer(int bufferSizeBytes = 65536)Create BufferOptions for Sized
| Parameter | |
|---|---|
| Name | Description |
bufferSizeBytes |
Int32Optional, The buffer size in bytes. |
| Returns | |
|---|---|
| Type | Description |
BufferOptions |
|
TimedBuffer(Nullable<TimeSpan>)
public static BufferOptions TimedBuffer(TimeSpan? bufferWaitTime = null)Create BufferOptions for Timed
| Parameter | |
|---|---|
| Name | Description |
bufferWaitTime |
Nullable<TimeSpan>Optional, The minimum amount of time between flushes. |
| Returns | |
|---|---|
| Type | Description |
BufferOptions |
|