|
||||||||||
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 |
connectionFactory(ConnectionFactory connectionFactory)
Specifies the ConnectionFactory to use. |
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(Serializable 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 |
sessionMode(int sessionMode)
Sets the session mode for this Builder. |
TopicBuilder |
subtopic(String subtopic)
Denotes messages and listeners on this Topic as belonging to a subtopic. |
TopicBuilder |
transacted()
Toggles the transacted state (default is false) for this builder. |
Method Detail |
---|
TopicBuilder transacted()
TopicBuilder sessionMode(int sessionMode)
sessionMode
- SessionMode flag, see javax.jms.Session's list of valid values.
TopicBuilder connectionFactory(ConnectionFactory connectionFactory)
ConnectionFactory
- to use.
TopicBuilder destination(Topic topic)
topic
- the topic to add.
TopicBuilder subtopic(String subtopic)
subtopic
- The name of the subtopic.
TopicBuilder sendObject(Serializable 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 |