org.jacorb.notification.engine
Class AbstractMessageTask

java.lang.Object
  extended byorg.jacorb.notification.util.AbstractPoolable
      extended byorg.jacorb.notification.engine.AbstractTask
          extended byorg.jacorb.notification.engine.AbstractMessageTask
All Implemented Interfaces:
org.picocontainer.Disposable, Disposable, java.lang.Runnable, Schedulable
Direct Known Subclasses:
AbstractFilterTask

public abstract class AbstractMessageTask
extends AbstractTask

Version:
$Id: AbstractMessageTask.java,v 1.3 2005/04/27 10:48:40 alphonse.bendt Exp $
Author:
Alphonse Bendt

Field Summary
 
Fields inherited from class org.jacorb.notification.util.AbstractPoolable
logger_
 
Constructor Summary
AbstractMessageTask()
           
 
Method Summary
protected  void checkInterrupt()
           
 Message copyMessage()
           
 void dispose()
          The call to this Method indicates that this Object is not needed by the user anymore.
protected  Message getMessage()
           
protected  boolean isRunnable()
           
 Message removeMessage()
           
 void reset()
          Reset the Object to an initial state.
 void setMessage(Message message)
          set the Message for this Task to use.
 
Methods inherited from class org.jacorb.notification.engine.AbstractTask
doWork, getTaskExecutor, run, schedule, schedule, setTaskExecutor
 
Methods inherited from class org.jacorb.notification.util.AbstractPoolable
setObjectPool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jacorb.notification.engine.Schedulable
schedule
 

Constructor Detail

AbstractMessageTask

public AbstractMessageTask()
Method Detail

setMessage

public void setMessage(Message message)
set the Message for this Task to use.


removeMessage

public Message removeMessage()

copyMessage

public Message copyMessage()

isRunnable

protected boolean isRunnable()
Overrides:
isRunnable in class AbstractTask

checkInterrupt

protected void checkInterrupt()
                       throws java.lang.InterruptedException
Overrides:
checkInterrupt in class AbstractTask
Throws:
java.lang.InterruptedException

getMessage

protected Message getMessage()

dispose

public void dispose()
Description copied from class: AbstractPoolable
The call to this Method indicates that this Object is not needed by the user anymore. After a call to dispose the Object can be returned to its ObjectPool. It's forbidden to use the Object after release has been called as this may cause unexpected behaviour.

Specified by:
dispose in interface org.picocontainer.Disposable
Overrides:
dispose in class AbstractPoolable

reset

public void reset()
Description copied from class: AbstractPoolable
Reset the Object to an initial state. Subclasses should override this method appropiately to reset the instance to an initial state.

Specified by:
reset in class AbstractPoolable