Share via


Streamable.SessionTimeoutWindow<TKey,TPayload> Method

Definition

The window type implements sessions with timeout in Trill. The current window is extended as long as new events arrive within a specified timeout period. Once a timeout period elapses with no data (for a given grouping key), the window is closed.

public static Microsoft.StreamProcessing.IStreamable<TKey,TPayload> SessionTimeoutWindow<TKey,TPayload> (this Microsoft.StreamProcessing.IStreamable<TKey,TPayload> source, long timeout, long maxDuration = 0);
static member SessionTimeoutWindow : Microsoft.StreamProcessing.IStreamable<'Key, 'Payload> * int64 * int64 -> Microsoft.StreamProcessing.IStreamable<'Key, 'Payload>
<Extension()>
Public Function SessionTimeoutWindow(Of TKey, TPayload) (source As IStreamable(Of TKey, TPayload), timeout As Long, Optional maxDuration As Long = 0) As IStreamable(Of TKey, TPayload)

Type Parameters

TKey

Type of (mapping) key in the stream

TPayload

Type of payload in the stream

Parameters

source
IStreamable<TKey,TPayload>

Input stream

timeout
Int64

Timeout for closing the current session

maxDuration
Int64

The max duration of a session timeout window

Returns

Result (output) stream

Applies to