|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TopicBuilder
TopicBuilder is a builder pattern implementation for working with JMS Topics.
Method Summary | |
---|---|
TopicBuilder |
destination(String destination)
Adds a destination based on JNDI location. |
TopicBuilder |
destination(Topic topic)
Adds a topic to the associated destinations. |
TopicBuilder |
listen(MessageListener... ml)
Adds the given MessageListeners as listeners on the associated destinations. |
TopicBuilder |
newBuilder()
Creates a TopicBuilder. |
TopicBuilder |
send(Message m)
Sends a JMS Message to the destinations associated. |
TopicBuilder |
sendMap(Map m)
Sends a Map as a JMS Map Message to the destinations associated. |
TopicBuilder |
sendObject(Object obj)
Sends an Object as a JMS Object Message to the destinations associated. |
TopicBuilder |
sendString(String s)
Sends a String as a JMS TextMessage to the destinations associated. |
TopicBuilder |
subtopic(String subtopic)
Denotes messages and listeners on this Topic as belonging to a subtopic. |
Method Detail |
---|
TopicBuilder destination(String destination)
destination
- jndi location.
TopicBuilder destination(Topic topic)
topic
- the topic to add.
TopicBuilder subtopic(String subtopic)
subtopic
- The name of the subtopic.
TopicBuilder sendObject(Object obj)
obj
- the serializable Object to send.
TopicBuilder send(Message m)
m
- The message to send.
TopicBuilder sendMap(Map m)
m
- the Map to send.
TopicBuilder sendString(String s)
s
- The String to send.
TopicBuilder listen(MessageListener... ml)
ml
- MessageListener instances to connect to these destinations.
TopicBuilder newBuilder()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |