Diffusion .NET Classic API - Core and Common  5.9.4
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
PushTechnology.DiffusionCore.Messaging.MessageFactory Class Reference

Typically APIs have suitable factory methods for all message types they require but the message creation methods provided here may be used by classes that have no direct reference to an API object. More...

Static Public Member Functions

static ITopicMessage CreateLoadMessage (string topic, int capacity=0)
 Creates a load message. More...
 
static ITopicMessage CreateDeltaMessage (string topic, int capacity=0)
 Creates a delta message. More...
 
static FetchMessage CreateFetchMessage (string topic, List< string > headers)
 Creates a fetch message. More...
 

Detailed Description

Typically APIs have suitable factory methods for all message types they require but the message creation methods provided here may be used by classes that have no direct reference to an API object.

Member Function Documentation

static ITopicMessage PushTechnology.DiffusionCore.Messaging.MessageFactory.CreateDeltaMessage ( string  topic,
int  capacity = 0 
)
static

Creates a delta message.

Parameters
topicThe topic name.
capacityThe initial capacity of the message which should be sufficient to hold the data and any user headers.
Returns
A new empty delta message.
static FetchMessage PushTechnology.DiffusionCore.Messaging.MessageFactory.CreateFetchMessage ( string  topic,
List< string >  headers 
)
static

Creates a fetch message.

Parameters
topic
headers
Returns
static ITopicMessage PushTechnology.DiffusionCore.Messaging.MessageFactory.CreateLoadMessage ( string  topic,
int  capacity = 0 
)
static

Creates a load message.

Parameters
topicThe topic name.
capacityThe initial capacity of the message which should be sufficient to hold the data and any user headers.
Returns
A new empty load message.