org.apache.felix.eventadmin.impl.dispatch
Interface TaskProducer

All Known Implementing Classes:
TaskHandler

public interface TaskProducer

Instances of this interface will deliver new tasks as soon as they are available while blocking in the next() call until then. Unless there won't be any more tasks in which case null is returned.

Author:
Felix Project Team

Method Summary
 HandlerTask next()
          Block until a new task is ready and is returned or no more tasks will be returned.
 

Method Detail

next

HandlerTask next()
Block until a new task is ready and is returned or no more tasks will be returned.

Returns:
The next task or null if no more tasks will be produced


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