Messaging.CreateContextOption, Messaging.CreateOption, Messaging.CreateQueueOption, Messaging.CreateTopicOption| Modifier and Type | Field and Description |
|---|---|
static String |
REMOTE_TYPE_STANDALONE |
static String |
REMOTE_TYPE_WILDFLY |
protected EmbeddedServer |
server |
protected boolean |
started |
| Constructor and Description |
|---|
HQMessaging(String name,
Options<Messaging.CreateOption> options) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCloseable(AutoCloseable closeable) |
protected void |
addCloseableForDestination(HQDestination dest,
AutoCloseable c) |
protected void |
closeCloseables() |
Context |
createContext(Map<Messaging.CreateContextOption,Object> options) |
protected javax.jms.Queue |
createQueue(String name,
String selector,
boolean durable) |
protected javax.jms.Topic |
createTopic(String name) |
protected boolean |
destroyDestination(HQDestination dest) |
protected void |
destroyQueue(String name) |
protected void |
destroyTopic(String name) |
Queue |
findOrCreateQueue(String name,
Map<Messaging.CreateQueueOption,Object> options) |
Topic |
findOrCreateTopic(String name,
Map<Messaging.CreateTopicOption,Object> options) |
boolean |
isRunning() |
org.hornetq.jms.server.JMSServerManager |
jmsServerManager() |
protected Object |
lookupJNDI(List<String> jndiNames) |
protected Object |
lookupJNDI(String jndiName) |
protected javax.jms.Queue |
lookupQueue(String name) |
protected javax.jms.Topic |
lookupTopic(String name) |
String |
name() |
void |
start() |
void |
stop() |
public static final String REMOTE_TYPE_WILDFLY
public static final String REMOTE_TYPE_STANDALONE
protected boolean started
protected EmbeddedServer server
public HQMessaging(String name, Options<Messaging.CreateOption> options)
public void start()
throws Exception
public void stop()
throws Exception
public org.hornetq.jms.server.JMSServerManager jmsServerManager()
public Context createContext(Map<Messaging.CreateContextOption,Object> options) throws Exception
createContext in interface MessagingExceptionpublic Queue findOrCreateQueue(String name, Map<Messaging.CreateQueueOption,Object> options) throws Exception
findOrCreateQueue in interface MessagingExceptionpublic Topic findOrCreateTopic(String name, Map<Messaging.CreateTopicOption,Object> options) throws Exception
findOrCreateTopic in interface MessagingExceptionprotected void addCloseable(AutoCloseable closeable)
protected javax.jms.Queue createQueue(String name, String selector, boolean durable) throws Exception
Exceptionprotected boolean destroyDestination(HQDestination dest) throws Exception
Exceptionprotected void addCloseableForDestination(HQDestination dest, AutoCloseable c)
protected javax.jms.Topic lookupTopic(String name)
protected javax.jms.Queue lookupQueue(String name)
Copyright © 2015. All Rights Reserved.