org.jboss.ejb.txtimer
Class FixedDelayRetryPolicy
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.ejb.txtimer.FixedDelayRetryPolicy
- All Implemented Interfaces:
- MBeanRegistration, NotificationBroadcaster, NotificationEmitter, FixedDelayRetryPolicyMBean, RetryPolicy, org.jboss.kernel.spi.dependency.KernelControllerContextAware, Service, ServiceMBean
public class FixedDelayRetryPolicy
- extends ServiceMBeanSupport
- implements FixedDelayRetryPolicyMBean
This service implements a RetryPolicy that retries
the call to ejbTimeout after a fixed delay.
- Since:
- 07-Apr-2004
- Version:
- $Revision: 81030 $
- Author:
- Thomas.Diesler@jboss.org
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Method Summary |
long |
getDelay()
Get the delay for retry |
void |
retryTimeout(TimedObjectInvoker invoker,
javax.ejb.Timer 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 |
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, pojoChange, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, preRegister, setKernelControllerContext, start, startService, stop, stopService, unsetKernelControllerContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FixedDelayRetryPolicy
public FixedDelayRetryPolicy()
getDelay
public long getDelay()
- Get the delay for retry
- Specified by:
getDelay
in interface FixedDelayRetryPolicyMBean
- Returns:
- delay in ms
setDelay
public void setDelay(long delay)
- Set the delay for retry
- Specified by:
setDelay
in interface FixedDelayRetryPolicyMBean
- Parameters:
delay
- in ms
retryTimeout
public void retryTimeout(TimedObjectInvoker invoker,
javax.ejb.Timer timer)
- Invokes the ejbTimeout method on the TimedObject with the given id.
- Specified by:
retryTimeout
in interface RetryPolicy
- Parameters:
invoker
- The invoker for the TimedObjecttimer
- the Timer that is passed to ejbTimeout
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.