Collapse All Expand All | Language Filter: C#Language Filter: Visual Basic Language Filter: Visual C++ C# Visual Basic Visual C++ | See Also
StreamBase Client API
StreamBaseClient..::EnableBuffering Method (Int32, Int32)

Turn on buffering. The WakeAndFlushBuffer thread is only started if nFlushIntervalInMS > 0.

Namespace: StreamBase.SB.Client
Assembly: StreamBase.SB.Client (in StreamBase.SB.Client.dll) Version: 10.3.0.0

# Syntax

| C# |  |  | Visual Basic |  |  | Visual C++ |

    public void EnableBuffering(
    	int nBufferSize,
    	int nFlushIntervalInMS
    )

    Public Sub EnableBuffering ( _
    	nBufferSize As Integer, _
    	nFlushIntervalInMS As Integer _
    )

    public:
    void EnableBuffering(
    	int nBufferSize,
    	int nFlushIntervalInMS
    )

#### Parameters

nBufferSize
  Int32
  Number of tuples to buffer before enqueueing. Negative values have no effect.

nFlushIntervalInMS
  Int32
  Interval in milliseconds before buffer will be force-flushed to the queue

# Exceptions

Exception | Condition
--- | ---
StreamBase.SB..::..StreamBaseException | Buffering was already enabled

# See Also

StreamBaseClient Class
EnableBuffering Overload
StreamBase.SB.Client Namespace