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
ABroadcastCommandDispatcherFactorythat returns the sameCommandDispatcherinstance for a given identifier.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description ConcurrentBroadcastCommandDispatcherFactory(CommandDispatcherFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <C> CommandDispatcher<C>createCommandDispatcher(Object id, C context)GroupgetGroup()voidreceive(byte[] data)Receives the specified broadcast data.Registrationregister(BroadcastReceiver receiver)
-
-
-
Constructor Detail
-
ConcurrentBroadcastCommandDispatcherFactory
public ConcurrentBroadcastCommandDispatcherFactory(CommandDispatcherFactory factory)
-
-
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 Registration register(BroadcastReceiver receiver)
- Specified by:
registerin interfaceRegistrar<BroadcastReceiver>
-
getGroup
public Group getGroup()
- Specified by:
getGroupin interfaceCommandDispatcherFactory
-
createCommandDispatcher
public <C> CommandDispatcher<C> createCommandDispatcher(Object id, C context)
- Specified by:
createCommandDispatcherin interfaceCommandDispatcherFactory
-
-