org.richfaces.demo.push
Class TopicsContextMessageProducer
java.lang.Object
org.richfaces.demo.push.TopicsContextMessageProducer
- All Implemented Interfaces:
- MessageProducer
public class TopicsContextMessageProducer
- extends Object
- implements MessageProducer
Sends message to topic using TopicsContext.
- 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_TOPICS_CONTEXT_TOPIC
public static final String PUSH_TOPICS_CONTEXT_TOPIC
- See Also:
- Constant Field Values
TopicsContextMessageProducer
public TopicsContextMessageProducer()
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.