Is it possible to get a continuous output stream With streaminsight? My problem is that when I make a query on the inputstream with a hopping/tumbling window, the query doesnt give me any output when there are no input events. This sounds normal but is it possible to get a window mechanism that gives me output every 5 seconds also when there are no input events?
this is my code maybe the problem becomes clear after this:
var inputStream = CepStream<ServiceBusMessage>.Create("Inputstream Portal Orders");
// Counts the number of messages in a window of 5 seconds
var countStream = from w in inputStream.TumblingWindow(outputConfig.windowSize)
select w.Count();
var queryTemplate = app.CreateQueryTemplate("Count Window Portal Orders", "des...", countStream);
var queryBinder = new QueryBinder(queryTemplate);
queryBinder.BindProducer<ServiceBusMessage>("Inputstream Portal Orders", inputAdapter, config, EventShape.Point);
// Just an simple outputadapter
queryBinder.AddConsumer<long>("output", outputAdapter, outputConfig, EventShape.Point, StreamEventOrder.ChainOrdered);
var query = app.CreateQuery("Counter portal orders", "des...", queryBinder);
query.Start();
The output that I want for let say this input:
example input
input time 1: x
input time 2: x
input time 6: x
input time 16: x
expecting output:
2 events in last 5 seconds
1 events in last 5 seconds
0 events in last 5 seconds
1 events in last 5 seconds
Hope this window mechanism is possible within streaminsight, I googled for a lot of things read the developers guide but noting that handles contentious output or something similar. Hope someone can help me!