|
REQUIREMENT interface.unSubscribe |
| Type | NEW |
| Priority | HIGH |
| Status | CLOSED |
| Topic | Message subscriptions are canceled with the unSubscribe() method | |||||||||||||||
|
Des cription |
The unSubscribe() method allows to cancel message subscriptions in xmlBlaster. To unSubscribe you pass the subscriptionId you got from subscribe(). Method detail (CORBA IDL notation):
typedef string XmlType;
XmlTypeArr unSubscribe(in XmlType xmlKey, in XmlType qos) raises(XmlBlasterException);
|
|||||||||||||||
|
Example XML |
Here is an example of an unSubscribe:
And a return value:
|
|||||||||||||||
|
Example XML |
Here is an example of an XPATH unSubscribe:
And a return value matching three previous subscribes:
|
|||||||||||||||
|
Example XmlRpc |
This is the XmlRpc server interface variant:
public String[] unSubscribe(String sessionId, String xmlKey_literal, String qos_literal)
throws XmlBlasterException
|
|||||||||||||||
|
Example RMI |
This is the RMI server interface variant:
public void unSubscribe(String sessionId, String xmlKey_literal, String qos_literal)
throws RemoteException, XmlBlasterException
|
|||||||||||||||
|
Example Java |
A typical Java client code to unSubscribe:
import org.xmlBlaster.client.key.SubscribeKey;
import org.xmlBlaster.client.qos.*;
...
// subscribe:
SubscribeKey sk = new SubscribeKey(glob, "MyOid");
SubscribeQos sq = new SubscribeQos(glob);
SubscribeReturnQos sr = con.subscribe(sk.toXml(), sq.toXml());
...
// unSubscribe:
UnSubscribeKey uk = new UnSubscribeKey(glob, sr.getSubscriptionId());
UnSubscribeQos uq = new UnSubscribeQos(glob);
con.unSubscribe(uk.toXml(), uq.toXml());
See xmlBlaster/demo/HelloWorld*.java for more examples. |
|||||||||||||||
| Configure |
NOTE: Configuration parameters are specified on command line (-someValue 17) or in the
xmlBlaster.properties file (someValue=17). See requirement "util.property" for details. |
|||||||||||||||
| See REQ | interface | |||||||||||||||
| See API | org.xmlBlaster.client.key.UnSubscribeKey | |||||||||||||||
| See API | org.xmlBlaster.client.qos.UnSubscribeQos | |||||||||||||||
| See API | org.xmlBlaster.protocol.xmlrpc.XmlBlasterImpl | |||||||||||||||
| See API | org.xmlBlaster.protocol.rmi.XmlBlasterImpl | |||||||||||||||
| See API | org.xmlBlaster.client.I_XmlBlasterAccess | |||||||||||||||
| See TEST | org.xmlBlaster.test.qos.TestUnSub | |||||||||||||||
| See TEST | org.xmlBlaster.test.qos.TestSubNoDup |
This page is generated from the requirement XML file xmlBlaster/doc/requirements/interface.unSubscribe.xml