RichFaces Showcase 4.1.0.20111101-M4

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
 void finalizeProducer()
          Finalizes the producer (frees all associated resources)
 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 Exception
Sends a message.

Throws:
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

finalizeProducer

void finalizeProducer()
Finalizes the producer (frees all associated resources)


RichFaces Showcase 4.1.0.20111101-M4

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