Custom Window Strategies

In addition to the built-in strategies, you can create your own by implementing com.northconcepts.datapipeline.group.CreateWindowStrategy and com.northconcepts.datapipeline.group.CloseWindowStrategy.

Below you can see the implementation for the limitOpened() method used before. It simple compares the number of opened windows to the specified value.

The never() method has a similarly simple implementation — it just always returns false.

Mobile Analytics