Richfaces Examples: Richfaces Showcase Application 4.1.0.20110910-M2

org.richfaces.demo.push
Interface MessageProducer

All Known Implementing Classes:
JMSMessageProducer, TopicsContextMessageProducer

public interface MessageProducer

Interface for implementations producing messages.

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.
 

Method Detail

sendMessage

void sendMessage()
                 throws java.lang.Exception
Sends a message.

Throws:
java.lang.Exception - any exception which was thrown when trying to send message.

getInterval

int getInterval()
Interval which will be producer sleeping after last message sent before start of sending of next message.

Returns:
interval in miliseconds

Richfaces Examples: Richfaces Showcase Application 4.1.0.20110910-M2

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