public class BroadcastGroupImpl extends Object implements BroadcastGroup, Runnable
This class will use the BroadcastEndpoint to send periodical updates on the list for connections
used by this server.
This is totally generic to the mechanism used on the transmission. It originally only had UDP but this got refactored
into sub classes of BroadcastEndpoint
| Constructor and Description |
|---|
BroadcastGroupImpl(NodeManager nodeManager,
String name,
long broadCastPeriod,
ScheduledExecutorService scheduledExecutor,
BroadcastEndpointFactory endpointFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnector(TransportConfiguration tcConfig) |
void |
broadcastConnectors() |
String |
getName() |
boolean |
isStarted() |
void |
removeConnector(TransportConfiguration tcConfig) |
void |
run() |
void |
setNotificationService(NotificationService notificationService) |
int |
size() |
void |
start() |
void |
stop() |
public BroadcastGroupImpl(NodeManager nodeManager, String name, long broadCastPeriod, ScheduledExecutorService scheduledExecutor, BroadcastEndpointFactory endpointFactory) throws Exception
Exceptionpublic void setNotificationService(NotificationService notificationService)
setNotificationService in interface BroadcastGrouppublic void start()
throws Exception
start in interface ActiveMQComponentExceptionpublic void stop()
stop in interface ActiveMQComponentpublic boolean isStarted()
isStarted in interface ActiveMQComponentpublic String getName()
getName in interface BroadcastGrouppublic void addConnector(TransportConfiguration tcConfig)
addConnector in interface BroadcastGrouppublic void removeConnector(TransportConfiguration tcConfig)
removeConnector in interface BroadcastGrouppublic int size()
size in interface BroadcastGrouppublic void broadcastConnectors()
throws Exception
broadcastConnectors in interface BroadcastGroupExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.