Class QueueBroadcastManager
- java.lang.Object
-
- org.wildfly.extension.messaging.activemq.broadcast.QueueBroadcastManager
-
- All Implemented Interfaces:
BroadcastManager,BroadcastReceiver
public class QueueBroadcastManager extends Object implements BroadcastManager
- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description QueueBroadcastManager(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()byte[]getBroadcast()byte[]getBroadcast(long timeout, TimeUnit unit)voidreceive(byte[] broadcast)Receives the specified broadcast data.
-
-
-
Constructor Detail
-
QueueBroadcastManager
public QueueBroadcastManager(String name)
-
-
Method Detail
-
receive
public void receive(byte[] broadcast)
Description copied from interface:BroadcastReceiverReceives the specified broadcast data.- Specified by:
receivein interfaceBroadcastReceiver- Parameters:
broadcast- broadcast data
-
getBroadcast
public byte[] getBroadcast() throws InterruptedException- Specified by:
getBroadcastin interfaceBroadcastManager- Throws:
InterruptedException
-
getBroadcast
public byte[] getBroadcast(long timeout, TimeUnit unit) throws InterruptedException- Specified by:
getBroadcastin interfaceBroadcastManager- Throws:
InterruptedException
-
clear
public void clear()
- Specified by:
clearin interfaceBroadcastManager
-
-