org.jboss.ejb.txtimer
Class FixedDelayRetryPolicy

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.ejb.txtimer.FixedDelayRetryPolicy
All Implemented Interfaces:
MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)

public class FixedDelayRetryPolicy
extends ServiceMBeanSupport (src)

This service implements a RetryPolicy that retries the call to ejbTimeout after a fixed delay.

Since:
07-Apr-2004

Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
FixedDelayRetryPolicy()
           
 
Method Summary
 long getDelay()
          Get the delay for retry
 void retryTimeout(TimedObjectInvoker (src)  invoker, Timer (src)  timer)
          Invokes the ejbTimeout method on the TimedObject with the given id.
 void setDelay(long delay)
          Set the delay for retry
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, startService, stop, stopService
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedDelayRetryPolicy

public FixedDelayRetryPolicy()
Method Detail

getDelay

public long getDelay()
Get the delay for retry

Returns:
delay in ms

setDelay

public void setDelay(long delay)
Set the delay for retry

Parameters:
delay - in ms

retryTimeout

public void retryTimeout(TimedObjectInvoker (src)  invoker,
                         Timer (src)  timer)
Invokes the ejbTimeout method on the TimedObject with the given id.

Parameters:
invoker - The invoker for the TimedObject
timer - the Timer that is passed to ejbTimeout