org.jboss.ejb3.timerservice.spi
Interface TimerServiceFactory


public interface TimerServiceFactory

Creates an EJB TimerService for TimedObjectInvokers.

Version:
$Revision: $
Author:
Carlo de Wolf

Method Summary
 javax.ejb.TimerService createTimerService(TimedObjectInvoker invoker)
          Create an EJB TimerService for the given TimedObjectInvoker.
 void restoreTimerService(javax.ejb.TimerService timerService)
          Restores the timers held by the specified timer service.
 void suspendTimerService(javax.ejb.TimerService timerService)
          Suspends the timers held by the specified timer service.
 

Method Detail

createTimerService

javax.ejb.TimerService createTimerService(TimedObjectInvoker invoker)
Create an EJB TimerService for the given TimedObjectInvoker.

Parameters:
invoker - the TimerObjectInvoker for which a TimerService must be created
Returns:
the EJB TimerService for the TimerObjectInvoker
Throws:
NullPointerException - if invoker is null

restoreTimerService

void restoreTimerService(javax.ejb.TimerService timerService)
Restores the timers held by the specified timer service. Once a TimerObjectInvoker is ready to receive callbacks, it should call this function.

Parameters:
timerService - the timerService that should restore its timers
Throws:
NullPointerException - if timerService is null

suspendTimerService

void suspendTimerService(javax.ejb.TimerService timerService)
Suspends the timers held by the specified timer service. Note that after this method there should be reference anymore to the TimerObjectInvoker.

Parameters:
timerService -
Throws:
NullPointerException - if timerService is null


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.