Class BroadcastGroupImpl
java.lang.Object
org.apache.activemq.artemis.core.server.cluster.impl.BroadcastGroupImpl
- All Implemented Interfaces:
Runnable,ActiveMQComponent,BroadcastGroup
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 Summary
ConstructorsConstructorDescriptionBroadcastGroupImpl(NodeManager nodeManager, String name, long broadCastPeriod, ScheduledExecutorService scheduledExecutor, BroadcastEndpointFactory endpointFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConnector(TransportConfiguration tcConfig) voidgetName()booleanvoidremoveConnector(TransportConfiguration tcConfig) voidrun()voidsetNotificationService(NotificationService notificationService) intsize()voidstart()voidstop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.core.server.ActiveMQComponent
asyncStop
-
Constructor Details
-
BroadcastGroupImpl
public BroadcastGroupImpl(NodeManager nodeManager, String name, long broadCastPeriod, ScheduledExecutorService scheduledExecutor, BroadcastEndpointFactory endpointFactory) throws Exception - Throws:
Exception
-
-
Method Details
-
setNotificationService
- Specified by:
setNotificationServicein interfaceBroadcastGroup
-
start
- Specified by:
startin interfaceActiveMQComponent- Throws:
Exception
-
stop
public void stop()- Specified by:
stopin interfaceActiveMQComponent
-
isStarted
public boolean isStarted()- Specified by:
isStartedin interfaceActiveMQComponent
-
getName
- Specified by:
getNamein interfaceBroadcastGroup
-
addConnector
- Specified by:
addConnectorin interfaceBroadcastGroup
-
removeConnector
- Specified by:
removeConnectorin interfaceBroadcastGroup
-
size
public int size()- Specified by:
sizein interfaceBroadcastGroup
-
broadcastConnectors
- Specified by:
broadcastConnectorsin interfaceBroadcastGroup- Throws:
Exception
-
run
public void run()
-