MyChannels.Nirvana.IBatchedSubscription Interface Reference

Allows the caller to efficiently subscribe to many topics More...

Inherits IDisposable.

Inherited by MyChannels.Nirvana.BatchedTopicSubscription.

Public Member Functions

IConsumer CreateConsumer (string name, string filter=null, long eventId=0, bool subscribeToPurge=false)
 Creates a Topic consumer. More...
 
void Execute ()
 Subscribe to all of the consumers in the batch More...
 

Detailed Description

Allows the caller to efficiently subscribe to many topics

Member Function Documentation

IConsumer MyChannels.Nirvana.IBatchedSubscription.CreateConsumer ( string  name,
string  filter = null,
long  eventId = 0,
bool  subscribeToPurge = false 
)

Creates a Topic consumer.

Parameters
nameThe name of the topic
filterThe event filter (channel key)
eventIdThe event id you would like to start at.
subscribeToPurgeThe consumer will receive purge events
void MyChannels.Nirvana.IBatchedSubscription.Execute ( )

Subscribe to all of the consumers in the batch