Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

com::cosylab::acs::jms::ACSJMSConsumer Class Reference

Inheritance diagram for com::cosylab::acs::jms::ACSJMSConsumer:

Inheritance graph
[legend]
Collaboration diagram for com::cosylab::acs::jms::ACSJMSConsumer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACSJMSConsumer (Destination destination, ContainerServicesBase contServices, String selector) throws JMSException
String getMessageSelector () throws JMSException
void setMessageSelector (String selectorString)
MessageListener getMessageListener () throws JMSException
void setMessageListener (MessageListener listener) throws JMSException
Message receive () throws JMSException
Message receive (long timeout) throws JMSException
Message receiveNoWait () throws JMSException
void close () throws JMSException
void receive (ACSJMSMessageEntity message)

Protected Attributes

Destination destination

Private Attributes

MessageListener listener
ContainerServicesBase containerServices
ACSJMSMessageSelector selector = null

Detailed Description

This class supports only the listener mechanism.

The overloaded receive methods and receiveNoWait are not implemented and throw an UnsupportedOperationException. Having both methods (receive and callback) in place causes an out of memory if the queue of message is not flushed on disk. To avoid memory neverending memory consumption I have preferred to remove the implementations of the calls leaving only the callback (given that at the present this is the only one used)

Author:
kzagar


Constructor & Destructor Documentation

com::cosylab::acs::jms::ACSJMSConsumer::ACSJMSConsumer Destination  destination,
ContainerServicesBase  contServices,
String  selector
throws JMSException [inline]
 

The constructor of the consumer

Parameters:
destination 
contServices The Container services
selector The message selector (can be empty or null)


Member Function Documentation

void com::cosylab::acs::jms::ACSJMSConsumer::close  )  throws JMSException [inline]
 

Reimplemented in com::cosylab::acs::jms::ACSJMSTopicSubscriber.

MessageListener com::cosylab::acs::jms::ACSJMSConsumer::getMessageListener  )  throws JMSException [inline]
 

String com::cosylab::acs::jms::ACSJMSConsumer::getMessageSelector  )  throws JMSException [inline]
 

void com::cosylab::acs::jms::ACSJMSConsumer::receive ACSJMSMessageEntity  message  )  [inline]
 

Message com::cosylab::acs::jms::ACSJMSConsumer::receive long  timeout  )  throws JMSException [inline]
 

Message com::cosylab::acs::jms::ACSJMSConsumer::receive  )  throws JMSException [inline]
 

Message com::cosylab::acs::jms::ACSJMSConsumer::receiveNoWait  )  throws JMSException [inline]
 

void com::cosylab::acs::jms::ACSJMSConsumer::setMessageListener MessageListener  listener  )  throws JMSException [inline]
 

void com::cosylab::acs::jms::ACSJMSConsumer::setMessageSelector String  selectorString  )  [inline]
 

Set a new SQL92 selector string for the consumer

Parameters:
selectorString 


Member Data Documentation

ContainerServicesBase com::cosylab::acs::jms::ACSJMSConsumer::containerServices [private]
 

Destination com::cosylab::acs::jms::ACSJMSConsumer::destination [protected]
 

MessageListener com::cosylab::acs::jms::ACSJMSConsumer::listener [private]
 

ACSJMSMessageSelector com::cosylab::acs::jms::ACSJMSConsumer::selector = null [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:10:07 2009 for ACS Java API by doxygen 1.3.8