|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.atmosphere.plugin.jms.JMSFilter
public class JMSFilter
Clustering support based on JMS
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.atmosphere.cpr.BroadcastFilter |
|---|
org.atmosphere.cpr.BroadcastFilter.BroadcastAction |
| Field Summary |
|---|
| Fields inherited from interface org.atmosphere.cpr.BroadcastFilter |
|---|
VOID_ATMOSPHERE_RESOURCE_UUID |
| Constructor Summary | |
|---|---|
JMSFilter()
|
|
JMSFilter(org.atmosphere.cpr.Broadcaster bc)
Create a JMSFilter based filter. |
|
JMSFilter(org.atmosphere.cpr.Broadcaster bc,
String topicId)
Create a JMSFilter based filter. |
|
| Method Summary | |
|---|---|
void |
destroy()
|
org.atmosphere.cpr.BroadcastFilter.BroadcastAction |
filter(Object originalMessage,
Object o)
Every time a message gets broadcasted, make sure we update the cluster. |
org.atmosphere.cpr.Broadcaster |
getBroadcaster()
Return the current Broadcaster |
void |
init(org.atmosphere.cpr.AtmosphereConfig config)
Preapre the cluter. |
void |
setBroadcaster(org.atmosphere.cpr.Broadcaster bc)
Set the current Broadcaster to use when a cluster event happens. |
void |
setUri(String clusterName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JMSFilter()
public JMSFilter(org.atmosphere.cpr.Broadcaster bc)
bc - the Broadcaster to use when receiving update from the cluster.
public JMSFilter(org.atmosphere.cpr.Broadcaster bc,
String topicId)
bc - the Broadcaster to use when receiving update from the cluster.topicId - the topic id| Method Detail |
|---|
public void setUri(String clusterName)
setUri in interface org.atmosphere.cpr.ClusterBroadcastFilterpublic void init(org.atmosphere.cpr.AtmosphereConfig config)
init in interface org.atmosphere.cpr.BroadcastFilterLifecyclepublic void destroy()
destroy in interface org.atmosphere.cpr.BroadcastFilterLifecycle
public org.atmosphere.cpr.BroadcastFilter.BroadcastAction filter(Object originalMessage,
Object o)
filter in interface org.atmosphere.cpr.BroadcastFiltero - the message to broadcast.
public org.atmosphere.cpr.Broadcaster getBroadcaster()
Broadcaster
getBroadcaster in interface org.atmosphere.cpr.ClusterBroadcastFilterpublic void setBroadcaster(org.atmosphere.cpr.Broadcaster bc)
Broadcaster to use when a cluster event happens.
setBroadcaster in interface org.atmosphere.cpr.ClusterBroadcastFilterbc -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||