Usage of SubscribeToLast

16 views
Skip to first unread message

reshefm

unread,
Nov 26, 2008, 2:30:05 PM11/26/08
to retlang-dev
Hi,

What is the purpose of the intervalInMs parameter in
ISubscriber.SubscribeToLast(...)?

Thanks, Reshef

Mike Rettig

unread,
Dec 2, 2008, 3:50:21 AM12/2/08
to retla...@googlegroups.com
Like any other batching subscription, this defines the interval for the batching operation.

If the interval is 0, then messages will be delivered as fast as the Fiber can consume the messages. If the fiber is busy consuming events when new messages arrive on the channel, then the stale (older) messages will be dropped. 

If the interval is 100 ms, then when the first message arrives a timer will be set for 100 ms. All messages that arrive on that channel during that interval will overwrite the prior. When the timer expires, the last message will be delivered to the fiber.

Mike
Reply all
Reply to author
Forward
0 new messages