Class ConcurrentBroadcastCommandDispatcherFactory
- java.lang.Object
-
- org.wildfly.extension.messaging.activemq.broadcast.ConcurrentBroadcastCommandDispatcherFactory
-
- All Implemented Interfaces:
org.wildfly.clustering.dispatcher.CommandDispatcherFactory,org.wildfly.clustering.Registrar<BroadcastReceiver>,BroadcastCommandDispatcherFactory,BroadcastReceiver,BroadcastReceiverRegistrar
public class ConcurrentBroadcastCommandDispatcherFactory extends Object implements BroadcastCommandDispatcherFactory
ABroadcastCommandDispatcherFactorythat returns the sameCommandDispatcherinstance for a given identifier.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description ConcurrentBroadcastCommandDispatcherFactory(org.wildfly.clustering.server.dispatcher.CommandDispatcherFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <C> org.wildfly.clustering.dispatcher.CommandDispatcher<C>createCommandDispatcher(Object id, C context)org.wildfly.clustering.group.GroupgetGroup()voidreceive(byte[] data)Receives the specified broadcast data.org.wildfly.clustering.Registrationregister(BroadcastReceiver receiver)
-
-
-
Method Detail
-
receive
public void receive(byte[] data)
Description copied from interface:BroadcastReceiverReceives the specified broadcast data.- Specified by:
receivein interfaceBroadcastReceiver- Parameters:
data- broadcast data
-
register
public org.wildfly.clustering.Registration register(BroadcastReceiver receiver)
- Specified by:
registerin interfaceorg.wildfly.clustering.Registrar<BroadcastReceiver>
-
getGroup
public org.wildfly.clustering.group.Group getGroup()
- Specified by:
getGroupin interfaceorg.wildfly.clustering.dispatcher.CommandDispatcherFactory
-
createCommandDispatcher
public <C> org.wildfly.clustering.dispatcher.CommandDispatcher<C> createCommandDispatcher(Object id, C context)
- Specified by:
createCommandDispatcherin interfaceorg.wildfly.clustering.dispatcher.CommandDispatcherFactory
-
-