|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DestinationBuilder
QueueBuilder is a builder pattern implementation for working with JMS Queues.
| Method Summary | |
|---|---|
DestinationBuilder |
connectionFactory(javax.jms.ConnectionFactory connectionFactory)
Specifies the ConnectionFactory to use. |
DestinationBuilder |
destination(javax.jms.Destination destination)
Adds a Queue to the destinations of this QueueBuilder. |
DestinationBuilder |
listen(javax.jms.MessageListener ml)
Adds the given MessageListeners as listeners on the associated destinations. |
DestinationBuilder |
newBuilder()
Creates a QueueBuilder. |
DestinationBuilder |
send(javax.jms.Message m)
Sends a JMS Message to the destinations associated. |
DestinationBuilder |
sendMap(Map m)
Sends a Map as a JMS Map Message to the destinations associated. |
DestinationBuilder |
sendObject(Serializable obj)
Sends a Serializable Object as an ObjectMessage. |
DestinationBuilder |
sendString(String s)
Sends a String as a JMS TextMessage to the destinations associated. |
DestinationBuilder |
sessionMode(int sessionMode)
Sets the session mode for this Builder. |
DestinationBuilder |
transacted()
Toggles the transacted state (default is false) for this builder. |
| Method Detail |
|---|
DestinationBuilder transacted()
DestinationBuilder sessionMode(int sessionMode)
sessionMode - SessionMode flag, see javax.jms.Session's list of valid values.
DestinationBuilder connectionFactory(javax.jms.ConnectionFactory connectionFactory)
ConnectionFactory - to use.
DestinationBuilder destination(javax.jms.Destination destination)
queue - The queue to add.
DestinationBuilder send(javax.jms.Message m)
m - The message to send.
DestinationBuilder sendMap(Map m)
m - the Map to send.
DestinationBuilder sendString(String s)
s - The String to send.
DestinationBuilder sendObject(Serializable obj)
obj - The Serializable object to send.
DestinationBuilder listen(javax.jms.MessageListener ml)
ml - MessageListener instances to connect to these destinations.
DestinationBuilder newBuilder()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||