Class CommandDispatcherBroadcastEndpoint
- java.lang.Object
-
- org.wildfly.extension.messaging.activemq.broadcast.CommandDispatcherBroadcastEndpoint
-
- All Implemented Interfaces:
org.apache.activemq.artemis.api.core.BroadcastEndpoint
public class CommandDispatcherBroadcastEndpoint extends Object implements org.apache.activemq.artemis.api.core.BroadcastEndpoint
ABroadcastEndpointbased on aCommandDispatcher.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description CommandDispatcherBroadcastEndpoint(org.wildfly.clustering.dispatcher.CommandDispatcherFactory factory, String name, BroadcastReceiverRegistrar registrar, Function<String,BroadcastManager> managerFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbroadcast(byte[] data)voidclose(boolean isBroadcast)voidopenBroadcaster()voidopenClient()byte[]receiveBroadcast()byte[]receiveBroadcast(long time, TimeUnit unit)
-
-
-
Constructor Detail
-
CommandDispatcherBroadcastEndpoint
public CommandDispatcherBroadcastEndpoint(org.wildfly.clustering.dispatcher.CommandDispatcherFactory factory, String name, BroadcastReceiverRegistrar registrar, Function<String,BroadcastManager> managerFactory)
-
-
Method Detail
-
openClient
public void openClient() throws Exception- Specified by:
openClientin interfaceorg.apache.activemq.artemis.api.core.BroadcastEndpoint- Throws:
Exception
-
openBroadcaster
public void openBroadcaster() throws Exception- Specified by:
openBroadcasterin interfaceorg.apache.activemq.artemis.api.core.BroadcastEndpoint- Throws:
Exception
-
close
public void close(boolean isBroadcast) throws Exception- Specified by:
closein interfaceorg.apache.activemq.artemis.api.core.BroadcastEndpoint- Throws:
Exception
-
broadcast
public void broadcast(byte[] data) throws Exception- Specified by:
broadcastin interfaceorg.apache.activemq.artemis.api.core.BroadcastEndpoint- Throws:
Exception
-
receiveBroadcast
public byte[] receiveBroadcast() throws Exception- Specified by:
receiveBroadcastin interfaceorg.apache.activemq.artemis.api.core.BroadcastEndpoint- Throws:
Exception
-
-