org.richfaces.demo.push
Class MessageProducerRunnable
java.lang.Object
org.richfaces.demo.push.MessageProducerRunnable
- All Implemented Interfaces:
- Runnable
public class MessageProducerRunnable
- extends Object
- implements Runnable
Runnable which are periodically sending messages until it is stopped or underlying thread is interrupted.
- Author:
- Lukas Fryc
|
Method Summary |
void |
run()
|
void |
stop()
Stops the cycle with body sending messages. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageProducerRunnable
public MessageProducerRunnable(MessageProducer messageProducer)
- Creates runnable with associated message producer.
- Parameters:
messageProducer - will be associated with this runnable
run
public void run()
- Specified by:
run in interface Runnable
stop
public void stop()
- Stops the cycle with body sending messages.
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.