com.ibm.streamsx.plumbing > com.ibm.streamsx.plumbing 1.0.0 > com.ibm.streamsx.plumbing.replay > replay.spl
Replay tuple buffer. Maintains a buffer of period seconds of tuples from In and replays all tuples in the buffer when a tuple is received on Control.
public composite ReplayBuffer(input In, Control ; output Replayed) { param expression<float64> $period ; graph (stream<In> Replayed) as Buffer = Join(In ; Control) { window In : sliding, time($period) ; Control : sliding, count(0) ; param match : true ; } }