IN
- Type of the input elementsOUT
- Type of the output elementpublic interface PatternTimeoutFunction<IN,OUT> extends Function, Serializable
Pattern
. The timeout method returns exactly one result. If you want
to return more than one result, then you have to implement a PatternFlatTimeoutFunction
.
PatternStream<IN> pattern = ...;
DataStream<OUT> result = pattern.select(..., new MyPatternTimeoutFunction());
Modifier and Type | Method and Description |
---|---|
OUT |
timeout(Map<String,List<IN>> pattern,
long timeoutTimestamp)
Generates a timeout result from the given map of events and timeout timestamp.
|
OUT timeout(Map<String,List<IN>> pattern, long timeoutTimestamp) throws Exception
pattern
- Map containing the found partial pattern. Events are identified by their namestimeoutTimestamp
- Timestamp of the timeoutException
- This method may throw exceptions. Throwing an exception will cause the
operation to fail and may trigger recovery.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.