public abstract class HQDestination extends Object implements Destination
Destination.ListenOption, Destination.MessageOpOption, Destination.PublishOption, Destination.ReceiveOption| Constructor and Description |
|---|
HQDestination(String name,
javax.jms.Destination destination,
HQMessaging broker) |
| Modifier and Type | Method and Description |
|---|---|
protected HQMessaging |
broker() |
protected HQSpecificContext |
context(Object context) |
protected static void |
fillInProperties(javax.jms.JMSProducer producer,
Map<String,Object> properties) |
abstract String |
fullName() |
static boolean |
isJndiName(String name) |
javax.jms.Destination |
jmsDestination() |
abstract String |
jmsName() |
static String |
jndiName(String name,
String type) |
Listener |
listen(MessageHandler handler,
Codecs codecs,
Map<Destination.ListenOption,Object> options) |
String |
name() |
void |
publish(Object content,
Codec codec,
Map<Destination.MessageOpOption,Object> options) |
protected void |
publish(Object message,
Codec codec,
Map<Destination.MessageOpOption,Object> options,
Map<String,Object> additionalProperties) |
Message |
receive(Codecs codecs,
Map<Destination.MessageOpOption,Object> options) |
void |
stop() |
public HQDestination(String name, javax.jms.Destination destination, HQMessaging broker)
public String name()
name in interface Destinationpublic javax.jms.Destination jmsDestination()
public abstract String fullName()
public abstract String jmsName()
public Listener listen(MessageHandler handler, Codecs codecs, Map<Destination.ListenOption,Object> options) throws Exception
listen in interface DestinationExceptionpublic void publish(Object content, Codec codec, Map<Destination.MessageOpOption,Object> options) throws Exception
publish in interface DestinationExceptionprotected static void fillInProperties(javax.jms.JMSProducer producer,
Map<String,Object> properties)
throws javax.jms.JMSException
javax.jms.JMSExceptionprotected HQSpecificContext context(Object context) throws Exception
Exceptionprotected void publish(Object message, Codec codec, Map<Destination.MessageOpOption,Object> options, Map<String,Object> additionalProperties) throws Exception
Exceptionpublic Message receive(Codecs codecs, Map<Destination.MessageOpOption,Object> options) throws Exception
receive in interface DestinationExceptionpublic void stop()
throws Exception
stop in interface DestinationExceptionprotected HQMessaging broker()
public static boolean isJndiName(String name)
Copyright © 2015. All Rights Reserved.