|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.tibco.bpm.web.client.model.pagebus.PageBus
public class PageBus
The PageBus class provides a GWT JSNI interface to the TIBCO PageBus(TM) version 2.0.0 Simple PageBus API.
The Simple PageBus API provides a fast, simple publish-subscribe engine. It does not implement containers or security. The ManagedHub classes can be used when containers and security is required. The Simple PageBus API does support the PageBus Event Cache. ©2011 Cloud Software Group, Inc.
ManagedHub
,
ManagedHubFrame
Constructor Summary | |
---|---|
PageBus()
|
Method Summary | |
---|---|
static void |
publish(java.lang.String topic,
java.lang.Object message)
Deprecated. |
static void |
publish(java.lang.String topic,
PageBusMessage message)
Publishes one message on a topic. |
static PageBusMessage[] |
query(java.lang.String topic)
|
static void |
store(java.lang.String topic,
PageBusMessage message)
|
static Subscription |
subscribe(java.lang.String topic,
OnDataCallback onDataCallback,
SubscriberData subscriberData)
Creates a subscription to a topic name. |
static Subscription |
subscribe(java.lang.String topic,
SubscriberCallback subscriberCallback)
Deprecated. |
static void |
unsubscribe(Subscription subscription)
Cancels a subscription, using the Subscription returned by PageBus.subscribe as a handle to the subscription. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageBus()
Method Detail |
---|
public static void publish(java.lang.String topic, PageBusMessage message)
topic
- Topic name on which to publish the message. This must NOT
be a wildcard topic.message
- Message to be published on the given topic.
BadParametersException
- An invalid topic was specified. A topic
may be invalid either because it is not a
legal topic name or because it is a
wildcard topic.public static Subscription subscribe(java.lang.String topic, OnDataCallback onDataCallback, SubscriberData subscriberData)
topic
- Topic name on which to subscribe. This MAY be a wildcard
topic.onDataCallback
- Callback function for PageBus to invoke when a
message is published on the subscribed subject.
This parameter must NOT be null.subscriberData
- User-defined. Null values are permitted. This is
useful when the subscriber needs to access or
update any data members when the callback function
is invoked. The value of the subscriberData
parameter determines whether the subscriber is
cache-enabled.
BadParametersException
- An illegal topic was specified.public static void unsubscribe(Subscription subscription)
subscription
- Subscription returned by PageBus.subscribe.
BadParametersException
- The parameter is not a valid subscription.public static PageBusMessage[] query(java.lang.String topic)
EventCache.query(JavaScriptObject, String)
public static void store(java.lang.String topic, PageBusMessage message)
EventCache.store(JavaScriptObject, String, PageBusMessage)
public static Subscription subscribe(java.lang.String topic, SubscriberCallback subscriberCallback)
public static void publish(java.lang.String topic, java.lang.Object message)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |