|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TimerComponent
Interface for the component that provides the EJB timer service.
| Method Summary | |
|---|---|
EZBTimerService |
getTimerService(Factory<?,?> factory)
Gets an EJB timer service through this component. |
void |
schedule(String id,
long interval,
TimerCallback callback,
Map<String,Object> callbackProperties)
Schedule a recurring call to a TimerCallback starting immediately. |
void |
unschedule(String id)
Unschedule a callback timer for a given id |
| Methods inherited from interface org.ow2.easybeans.component.api.EZBComponent |
|---|
init, start, stop |
| Method Detail |
|---|
EZBTimerService getTimerService(Factory<?,?> factory)
factory - an EasyBeans factory providing timeout notification.
void schedule(String id,
long interval,
TimerCallback callback,
Map<String,Object> callbackProperties)
throws EZBComponentException
TimerCallback starting immediately.
id - if there is already a Callback scheduled with the same id then an exception is throwninterval - Recurrence interval in millisecondscallback - The TimerCallback to notifycallbackProperties - Properties to be send to the TimerCallback.execute(java.util.Map) method
EZBComponentException
void unschedule(String id)
throws EZBComponentException
id - the scheduled timer id
EZBComponentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||