Richfaces Examples: Richfaces Showcase Application 4.1.0.20110805-M1

org.richfaces.demo.push
Class MessageProducerRunnable

java.lang.Object
  extended by 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

Constructor Summary
MessageProducerRunnable(MessageProducer messageProducer)
          Creates runnable with associated message producer.
 
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
 

Constructor Detail

MessageProducerRunnable

public MessageProducerRunnable(MessageProducer messageProducer)
Creates runnable with associated message producer.

Parameters:
messageProducer - will be associated with this runnable
Method Detail

run

public void run()
Specified by:
run in interface Runnable

stop

public void stop()
Stops the cycle with body sending messages.


Richfaces Examples: Richfaces Showcase Application 4.1.0.20110805-M1

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.