@Singleton public class NautilusBroker extends AbstractMessageBroker implements java.io.Closeable
Constructor and Description |
---|
NautilusBroker() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
BrokerReceiver |
createReceiver(java.lang.String name,
DistributionMode distMode,
java.util.Map<java.lang.String,java.lang.Object> nodeProperties,
ReceiverMessageHandler handler) |
BrokerSender |
createSender(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> nodeProperties) |
static NautilusBroker |
getCurrent() |
long |
getDequeueCount() |
long |
getEnqueueCount() |
int |
getSize() |
void |
init() |
void |
setPath(Path path) |
registerSelf
public void setPath(Path path)
@PostConstruct public void init()
public static NautilusBroker getCurrent()
public BrokerSender createSender(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> nodeProperties)
createSender
in interface MessageBroker
createSender
in class AbstractMessageBroker
public BrokerReceiver createReceiver(java.lang.String name, DistributionMode distMode, java.util.Map<java.lang.String,java.lang.Object> nodeProperties, ReceiverMessageHandler handler)
createReceiver
in interface MessageBroker
createReceiver
in class AbstractMessageBroker
public int getSize()
public long getEnqueueCount()
public long getDequeueCount()
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable