Package com.mayam.wf.mq
Class MqDestination
java.lang.Object
com.mayam.wf.mq.MqDestination
Message topic/queue.
- Author:
- Markus MÃ¥rtensson
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
static MqDestination
MqDestination factory.static ValueList
parseQueryFromURI
(URI uri) toString()
url()
protected static MqDestination.ConsumerArguments
verifyConsumeUrl
(String url) For a none durable consumer, the following can be used (all are mandatory, binding_key can be repeated)
consume://[exchangeName]?exchange_type=[fanout|direct|topic]invalid input: '&binding_key'=[key1]
-
Method Details
-
url
- Returns:
- a "queue://" style destination URL used to access a topic or a queue.
-
of
MqDestination factory.- Parameters:
url
- destination url.- Returns:
- matching MqDestination object.
-
parseQueryFromURI
-
verifyConsumeUrl
For a none durable consumer, the following can be used (all are mandatory, binding_key can be repeated)
consume://[exchangeName]?exchange_type=[fanout|direct|topic]invalid input: '&binding_key'=[key1]
For a durable consumer, the following can be used (all are mandatory, binding_key can be repeated)
consume://[exchangeName]?exchange_type=[fanout|direct|topic]invalid input: '&binding_key'=[key1]invalid input: '&queue'=[queueName]Please note that things needs to be encoded correctly. So binding_key with a hash needs to be %23
- Parameters:
url
-- Returns:
-
safeString
- Returns:
- a string safe to use as a directory component.
-
toString
-
equals
-
hashCode
public int hashCode() -
getConsumerArguments
-
getProducerArguments
-