org.ow2.util.pool.impl.enhanced.internal.actionscheduler
Interface IActionScheduler

All Known Implementing Classes:
ActionScheduler

public interface IActionScheduler

An action scheduler always schedules the same action. So we can cancel any of them. An action can be performed too late so the functional code abort it. Functional code have to return false if action was aborted. If scheduleAction perform the action in his thread, the cancelAction will returns almost always 0 (it could returns 1 but this imply concurrent call).

Author:
Gael Lalire

Method Summary
 int cancelAction(int time)
           
 void scheduleAction(int time)
           
 

Method Detail

scheduleAction

void scheduleAction(int time)

cancelAction

int cancelAction(int time)


Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.