org.apache.felix.eventadmin.impl.tasks
Class BlockTask

java.lang.Object
  extended by org.apache.felix.eventadmin.impl.tasks.BlockTask
All Implemented Interfaces:
HandlerTask

public class BlockTask
extends Object
implements HandlerTask

This task will can be used to block a thread that subsequently will be unblocked once the task is executed.

Author:
Felix Project Team

Constructor Summary
BlockTask()
           
 
Method Summary
 void blackListHandler()
          This methods does nothing since we only need this task to block and unblock threads.
 void block()
          Block the calling thread until this task is executed.
 void execute()
          Unblock possibly blocking threads.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockTask

public BlockTask()
Method Detail

execute

public void execute()
Unblock possibly blocking threads.

Specified by:
execute in interface HandlerTask
See Also:
HandlerTask.execute()

blackListHandler

public void blackListHandler()
This methods does nothing since we only need this task to block and unblock threads.

Specified by:
blackListHandler in interface HandlerTask
See Also:
HandlerTask.blackListHandler()

block

public void block()
Block the calling thread until this task is executed.



Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.