org.objectweb.joram.mom.dest.jmsbridge
Class JMSBridgeModule.ConsumerDaemon

java.lang.Object
  extended by fr.dyade.aaa.common.Daemon
      extended by org.objectweb.joram.mom.dest.jmsbridge.JMSBridgeModule.ConsumerDaemon
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
JMSBridgeModule

protected class JMSBridgeModule.ConsumerDaemon
extends Daemon

The ConsumerDaemon thread allows to call MessageConsumer.receive() for requesting a foreign JMS message without blocking the JORAM server.


Field Summary
 
Fields inherited from class fr.dyade.aaa.common.Daemon
canStop, group, logmon, priority, running, thread
 
Constructor Summary
protected JMSBridgeModule.ConsumerDaemon()
          Constructs a ReceiverDaemon thread.
 
Method Summary
 void close()
          Releases the daemon's resources.
protected  void receive()
          Notifies the daemon of a new "receive" request.
 void run()
          The daemon's loop.
 void shutdown()
          Shuts the daemon down.
 void start()
          Causes this daemon to begin execution.
 
Methods inherited from class fr.dyade.aaa.common.Daemon
finish, getName, interrupt, isCurrentThread, isRunning, setDaemon, setName, setPriority, setThreadGroup, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JMSBridgeModule.ConsumerDaemon

protected JMSBridgeModule.ConsumerDaemon()
Constructs a ReceiverDaemon thread.

Method Detail

receive

protected void receive()
Notifies the daemon of a new "receive" request.


start

public void start()
Description copied from class: Daemon
Causes this daemon to begin execution. A new thread is created to execute the run method.

Overrides:
start in class Daemon
See Also:
Daemon.start()

run

public void run()
The daemon's loop.


shutdown

public void shutdown()
Shuts the daemon down.

Specified by:
shutdown in class Daemon

close

public void close()
Releases the daemon's resources.

Specified by:
close in class Daemon


Copyright © 2011 ScalAgent D.T.. All Rights Reserved.