Streamable.SessionTimeoutWindow<TKey,TPayload> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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