org.exolab.jms.service
Class ServiceThreadListener

java.lang.Object
  |
  +--org.exolab.jms.service.ServiceThreadListener
All Implemented Interfaces:
java.util.EventListener, org.exolab.jms.common.threads.ThreadListener

public class ServiceThreadListener
extends java.lang.Object
implements org.exolab.jms.common.threads.ThreadListener

A ThreadListener that notifies child listeners of thread events..

Version:
$LastChangedDate$
Author:
Tim Anderson

Constructor Summary
ServiceThreadListener()
           
 
Method Summary
 void addThreadListener(org.exolab.jms.common.threads.ThreadListener listener)
          Add a listener.
 void begin(java.lang.Runnable command)
          Invoked when a command is to be executed.
 void end(java.lang.Runnable command)
          Invoked when a command completes execution.
 void removeThreadListener(org.exolab.jms.common.threads.ThreadListener listener)
          Remove a listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceThreadListener

public ServiceThreadListener()
Method Detail

addThreadListener

public void addThreadListener(org.exolab.jms.common.threads.ThreadListener listener)
Add a listener.
Parameters:
listener - the listener to add

removeThreadListener

public void removeThreadListener(org.exolab.jms.common.threads.ThreadListener listener)
Remove a listener.
Parameters:
listener - the listener tp remove

begin

public void begin(java.lang.Runnable command)
Invoked when a command is to be executed.
Specified by:
begin in interface org.exolab.jms.common.threads.ThreadListener
Parameters:
command - the command

end

public void end(java.lang.Runnable command)
Invoked when a command completes execution.
Specified by:
end in interface org.exolab.jms.common.threads.ThreadListener
Parameters:
command - the command.


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.