|
SAP NetWeaver 7.30 SP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface INotificationService
This service allows to perform local notification and cluster notification.
The intention is not to replace any JMS system as the messages are not persistent
and not garanteed to be delivered.
The underlying implementation is based on http and the messages are trusted between 2 PRTs.
The cluster notification bases its process on the cluster configuration.
@version $Revision:$.
@author Laurent Guiraud, Last modified by $Author:$, Change list $Change:$.
| Field Summary | |
|---|---|
static String |
KEY
service key |
| Method Summary | |
|---|---|
TopicDataContainer[] |
broadcastAndWait(String topic,
TopicDataContainer container)
Publishes a message to all the listeners and wait for the response. |
void |
publish(String topic,
TopicDataContainer container)
Publishes a message to all the listeners: local listeners and cluster listeners that registered for the given topic. |
TopicDataContainer |
publishAndWait(int id,
String topic,
TopicDataContainer container)
Publishes a message to the listener having for id "id" and wait for the response. |
void |
subscribe(String topic,
ITopicActionListener listener)
Enable an ITopicActionListener to register for all messages that correspond to the topic |
void |
subscribe(String topic,
ITopicListener listener)
Enable an ITopicListener to register for all messages that correspond to the topic |
void |
unsubscribe(String topic,
ITopicActionListener listener)
Enable to unsubsrcibe an ITopicActionListener that was previously registered. |
void |
unsubscribe(String topic,
ITopicListener listener)
Enable to unsubsrcibe an ITopicListener that was previously registered. |
| Methods inherited from interface com.sapportals.portal.prt.service.IService |
|---|
afterInit, configure, destroy, getContext, getKey, init, release |
| Field Detail |
|---|
static final String KEY
| Method Detail |
|---|
void subscribe(String topic,
ITopicListener listener)
topic - the name of the topic to subscribe forlistener - the handler when this topic is delivered
void subscribe(String topic,
ITopicActionListener listener)
topic - the name of the topic to subscribe forlistener - the handler when this topic is delivered
void unsubscribe(String topic,
ITopicListener listener)
This method is important since the object that registers can be released thus letting an instance of a listener in the Notification service could deal into some class loading discrepancies.
topic - the name of the topic to unsubscribelistener - the listenr to remove
void unsubscribe(String topic,
ITopicActionListener listener)
This method is important since the object that registers can be released thus letting an instance of a listener in the Notification service could deal into some class loading discrepancies.
topic - the name of the topic to unsubscribelistener - the listenr to remove
void publish(String topic,
TopicDataContainer container)
TopicDataContainer publishAndWait(int id,
String topic,
TopicDataContainer container)
TopicDataContainer[] broadcastAndWait(String topic,
TopicDataContainer container)
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com]
|
default
|
EP-PIN-PRT
|
|
SAP NetWeaver 7.30 SP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||