org.richfaces.demo.push
Class JMSMessageProducer
java.lang.Object
org.richfaces.demo.push.JMSMessageProducer
- All Implemented Interfaces:
- MessageProducer
public class JMSMessageProducer
- extends Object
- implements MessageProducer
Sends message to JMS topic.
- Author:
- Lukas Fryc
|
Method Summary |
int |
getInterval()
Interval which will be producer sleeping after last message sent before start of sending of next message. |
void |
sendMessage()
Sends a message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PUSH_JMS_TOPIC
public static final String PUSH_JMS_TOPIC
- See Also:
- Constant Field Values
JMSMessageProducer
public JMSMessageProducer()
sendMessage
public void sendMessage()
throws Exception
- Description copied from interface:
MessageProducer
- Sends a message.
- Specified by:
sendMessage in interface MessageProducer
- Throws:
Exception - any exception which was thrown when trying to send message.
getInterval
public int getInterval()
- Description copied from interface:
MessageProducer
- Interval which will be producer sleeping after last message sent before start of sending of next message.
- Specified by:
getInterval in interface MessageProducer
- Returns:
- interval in miliseconds
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.