RichFaces Showcase 4.3.1.CR1

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.3.1.CR1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.