Class ConcurrentBroadcastCommandDispatcherFactory
java.lang.Object
org.wildfly.extension.messaging.activemq.broadcast.ConcurrentBroadcastCommandDispatcherFactory
- All Implemented Interfaces:
org.wildfly.clustering.server.dispatcher.CommandDispatcherFactory<org.wildfly.clustering.server.GroupMember>,org.wildfly.clustering.server.Registrar<BroadcastReceiver>,BroadcastCommandDispatcherFactory,BroadcastReceiver,BroadcastReceiverRegistrar
public class ConcurrentBroadcastCommandDispatcherFactory
extends Object
implements BroadcastCommandDispatcherFactory
A
BroadcastCommandDispatcherFactory that returns the same CommandDispatcher instance for a given identifier.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionConcurrentBroadcastCommandDispatcherFactory(org.wildfly.clustering.server.dispatcher.CommandDispatcherFactory<org.wildfly.clustering.server.GroupMember> dispatcherFactory) -
Method Summary
Modifier and TypeMethodDescription<C> org.wildfly.clustering.server.dispatcher.CommandDispatcher<org.wildfly.clustering.server.GroupMember,C> createCommandDispatcher(Object id, C context) <C> org.wildfly.clustering.server.dispatcher.CommandDispatcher<org.wildfly.clustering.server.GroupMember,C> createCommandDispatcher(Object id, C context, ClassLoader loader) org.wildfly.clustering.server.Group<org.wildfly.clustering.server.GroupMember>getGroup()voidreceive(byte[] data) Receives the specified broadcast data.org.wildfly.clustering.server.Registrationregister(BroadcastReceiver receiver)
-
Constructor Details
-
ConcurrentBroadcastCommandDispatcherFactory
public ConcurrentBroadcastCommandDispatcherFactory(org.wildfly.clustering.server.dispatcher.CommandDispatcherFactory<org.wildfly.clustering.server.GroupMember> dispatcherFactory)
-
-
Method Details
-
receive
public void receive(byte[] data) Description copied from interface:BroadcastReceiverReceives the specified broadcast data.- Specified by:
receivein interfaceBroadcastReceiver- Parameters:
data- broadcast data
-
register
- Specified by:
registerin interfaceorg.wildfly.clustering.server.Registrar<BroadcastReceiver>
-
getGroup
public org.wildfly.clustering.server.Group<org.wildfly.clustering.server.GroupMember> getGroup()- Specified by:
getGroupin interfaceorg.wildfly.clustering.server.dispatcher.CommandDispatcherFactory<org.wildfly.clustering.server.GroupMember>
-
createCommandDispatcher
public <C> org.wildfly.clustering.server.dispatcher.CommandDispatcher<org.wildfly.clustering.server.GroupMember,C> createCommandDispatcher(Object id, C context) - Specified by:
createCommandDispatcherin interfaceorg.wildfly.clustering.server.dispatcher.CommandDispatcherFactory<org.wildfly.clustering.server.GroupMember>
-
createCommandDispatcher
public <C> org.wildfly.clustering.server.dispatcher.CommandDispatcher<org.wildfly.clustering.server.GroupMember,C> createCommandDispatcher(Object id, C context, ClassLoader loader) - Specified by:
createCommandDispatcherin interfaceorg.wildfly.clustering.server.dispatcher.CommandDispatcherFactory<org.wildfly.clustering.server.GroupMember>
-