MCPcopy Create free account
hub / github.com/directwebremoting/dwr / subscribe

Method subscribe

core/api/main/java/org/directwebremoting/Hub.java:44–44  ·  view source on GitHub ↗

Called to create a subscription so that future publishes to a similarly named topic alert the MessageListener that a publish has happened. Warning Currently the topic is a simple string pattern match. This more closely resembles JMS rather than the OpenAjax hub because we're taking the sim

(String topicName, MessageListener listener)

Source from the content-addressed store, hash-verified

42 * @param listener The object to notify of matching calls to publish()
43 */
44 void subscribe(String topicName, MessageListener listener);
45
46 /**
47 * Reverse the action of {@link #subscribe(String, MessageListener)}

Callers 5

subscribeMethod · 0.95
OpenAjaxSynchronizerMethod · 0.65
dwr-bayeux.jsFile · 0.65
DwrMessageConsumerMethod · 0.65

Implementers 4

DefaultHubcore/impl/main/java/org/directwebremot
OpenAjaxetc/future/fancyhub/OpenAjax.java
PubSubHubetc/future/fancyhub/PubSubHub.java
Systemcore/impl/main/java/org/directwebremot

Calls

no outgoing calls