For the full example, see {@link de.zib.scalaris.examples.PubSubPublishExample}
String topic; String URL; OtpErlangString otpTopic; OtpErlangString otpURL; TransactionSingleOp sc = new PubSub(); sc.subscribe(topic, URL); // {@link #subscribe(String,String)}sc.subscribe(otpTopic, otpURL); // {@link #subscribe(OtpErlangString,OtpErlangString)}
For the full example, see {@link de.zib.scalaris.examples.PubSubSubscribeExample}
String topic; String URL; OtpErlangString otpTopic; OtpErlangString otpURL; TransactionSingleOp sc = new PubSub(); sc.unsubscribe(topic, URL); // {@link #unsubscribe(String,String)}sc.unsubscribe(otpTopic, otpURL); // {@link #unsubscribe(OtpErlangString,OtpErlangString)}
String topic; OtpErlangString otpTopic; List<String> subscribers; OtpErlangList otpSubscribers; // non-static: TransactionSingleOp sc = new PubSub(); subscribers = sc.getSubscribers(topic).stringListValue(); // {@link #getSubscribers(String)}otpSubscribers = (OtpErlangList) sc.getSubscribers(otpTopic).value(); // {@link #getSubscribers(OtpErlangString)}
For the full example, see {@link de.zib.scalaris.examples.PubSubGetSubscribersExample}
|
|
|
|
|
|