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)

References containerServices, destination, and selector.


Member Function Documentation

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

References listener.

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 

References selector, and com::cosylab::acs::jms::ACSJMSMessageSelector::setSelectorString().


Member Data Documentation


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2