Publishing Messages

  GigaSpaces 5.X

Documentation Home
Quick Start Guide
Release Notes

Previous release

  Search Here
Searching GigaSpaces Platform 5.X Documentation

                                               

Summary: After obtaining a TopicPublisher, you can publish messages using one of the publish() methods.

Overview

After you've obtained a TopicPublisher, you can publish messages using one of the publish() methods. The methods normally used are:

void publish(Message message)
void publish(Message message,int deliveryMode, int priority, long timeToLive)
// publisher is an instance of TopicPublisher
// message is an instance of Message (or one of its subtypes)
publisher.publish(message);

If TopicPublisher was developed using a null topic it's called an 'unidentified producer'. In such a case, you must supply the topic for every message published using one of the following methods:

void publish(Topic topic, Message message)
void publish(Topic topic, Message message,int deliveryMode, int priority, long timeToLive)

If you use methods with the deliveryMode, priority, and timeToLive parameters, these override any defaults configured on the TopicPublisher.


Wiki Content Tree


Your Feedback Needed!

We need your help to improve this wiki site. If you have any suggestions or corrections, write to us at techw@gigaspaces.com. Please provide a link to the wiki page you are referring to.

Labels

 
(None)