com.scalagent.kjoram.QueueSender Class Reference

Inherits com.scalagent.kjoram.MessageProducer.

Inheritance diagram for com.scalagent.kjoram.QueueSender:

Inheritance graph
[legend]
Collaboration diagram for com.scalagent.kjoram.QueueSender:

Collaboration graph
[legend]
List of all members.

Public Member Functions

String toString ()
Queue getQueue () throws JMSException
void send (Queue queue, Message message) throws JMSException
void send (Queue queue, Message message, int deliveryMode, int priority, long timeToLive) throws JMSException

Package Functions

 QueueSender (QueueSession sess, Queue queue) throws JMSException

Detailed Description

Definition at line 30 of file QueueSender.java.


Constructor & Destructor Documentation

com.scalagent.kjoram.QueueSender.QueueSender ( QueueSession  sess,
Queue  queue 
) throws JMSException [package]

Constructs a sender.

Parameters:
sess The session the sender belongs to.
queue The queue the sender sends messages to.
Exceptions:
IllegalStateException If the connection is broken.
JMSException If the creation fails for any other reason.

Definition at line 41 of file QueueSender.java.

References com.scalagent.kjoram.MessageProducer.sess.


Member Function Documentation

String com.scalagent.kjoram.QueueSender.toString (  ) 

Returns a string view of this receiver.

Definition at line 47 of file QueueSender.java.

References com.scalagent.kjoram.Session.ident, and com.scalagent.kjoram.MessageProducer.sess.

Queue com.scalagent.kjoram.QueueSender.getQueue (  )  throws JMSException

API method.

Exceptions:
IllegalStateException If the sender is closed.

Definition at line 57 of file QueueSender.java.

References com.scalagent.kjoram.MessageProducer.closed.

void com.scalagent.kjoram.QueueSender.send ( Queue  queue,
Message  message 
) throws JMSException

API method.

Exceptions:
UnsupportedOperationException When the sender did not properly identify itself.
JMSSecurityException If the user if not a WRITER on the specified queue.
IllegalStateException If the sender is closed, or if the connection is broken.
JMSException If the request fails for any other reason.

Definition at line 76 of file QueueSender.java.

void com.scalagent.kjoram.QueueSender.send ( Queue  queue,
Message  message,
int  deliveryMode,
int  priority,
long  timeToLive 
) throws JMSException

API method.

Exceptions:
UnsupportedOperationException When the sender did not properly identify itself.
JMSSecurityException If the user if not a WRITER on the specified queue.
IllegalStateException If the sender is closed, or if the connection is broken.
JMSException If the request fails for any other reason.

Definition at line 93 of file QueueSender.java.


The documentation for this class was generated from the following file:
Generated on Tue Sep 16 16:15:22 2008 for joram by  doxygen 1.5.0