@Documented @Retention(value=RUNTIME) @Target(value=METHOD) @Experimental(value=STATE) public static @interface DoFn.OnWindowExpiration
The method annotated with @OnWindowExpiration
may have parameters according to the
same logic as DoFn.OnTimer
. See the following code for an example:
new DoFn<KV<Key, Foo>, Baz>() {
@ProcessElement
public void processElement(ProcessContext c) {
}
@OnWindowExpiration
public void onWindowExpiration() {
...
}
}