public class JGroupsFilter extends Object implements org.atmosphere.cpr.ClusterBroadcastFilter
| Constructor and Description |
|---|
JGroupsFilter() |
JGroupsFilter(JGroupsChannel jchannel)
Constructor
|
JGroupsFilter(JGroupsChannel jchannel,
org.atmosphere.cpr.Broadcaster bc)
Constructor with broadcaster
|
JGroupsFilter(String jGroupsFilterLocation) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
org.atmosphere.cpr.BroadcastFilter.BroadcastAction |
filter(String broadcasterId,
Object originalMessage,
Object message)
Every time a message gets broadcasted, make sure we update the cluster.
|
org.atmosphere.cpr.Broadcaster |
getBroadcaster() |
void |
init(org.atmosphere.cpr.AtmosphereConfig config) |
void |
setBroadcaster(org.atmosphere.cpr.Broadcaster bc) |
void |
setUri(String clusterUri) |
public JGroupsFilter()
public JGroupsFilter(String jGroupsFilterLocation)
public JGroupsFilter(JGroupsChannel jchannel)
jchannel - public JGroupsFilter(JGroupsChannel jchannel, org.atmosphere.cpr.Broadcaster bc)
jchannel - bc - public void destroy()
destroy in interface org.atmosphere.cpr.BroadcastFilterLifecyclepublic void init(org.atmosphere.cpr.AtmosphereConfig config)
init in interface org.atmosphere.cpr.BroadcastFilterLifecyclepublic org.atmosphere.cpr.BroadcastFilter.BroadcastAction filter(String broadcasterId, Object originalMessage, Object message)
filter in interface org.atmosphere.cpr.BroadcastFiltermessage - the message to broadcast.public org.atmosphere.cpr.Broadcaster getBroadcaster()
getBroadcaster in interface org.atmosphere.cpr.ClusterBroadcastFilterpublic void setBroadcaster(org.atmosphere.cpr.Broadcaster bc)
setBroadcaster in interface org.atmosphere.cpr.ClusterBroadcastFilterpublic void setUri(String clusterUri)
setUri in interface org.atmosphere.cpr.ClusterBroadcastFilterCopyright © 2015. All Rights Reserved.