Class ConcurrentBroadcastCommandDispatcherFactory
java.lang.Object
org.wildfly.extension.messaging.activemq.broadcast.ConcurrentBroadcastCommandDispatcherFactory
- All Implemented Interfaces:
CommandDispatcherFactory,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
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescription<C> CommandDispatcher<C>createCommandDispatcher(Object id, C context) getGroup()voidreceive(byte[] data) Receives the specified broadcast data.register(BroadcastReceiver receiver) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.dispatcher.CommandDispatcherFactory
createCommandDispatcher
-
Constructor Details
-
ConcurrentBroadcastCommandDispatcherFactory
-
-
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 interfaceRegistrar<BroadcastReceiver>
-
getGroup
- Specified by:
getGroupin interfaceCommandDispatcherFactory
-
createCommandDispatcher
- Specified by:
createCommandDispatcherin interfaceCommandDispatcherFactory
-