DISABLE_TIMER_ACTION

SKIP_TIMEOUT_ACTION

WLTimerInfo

public WLTimerInfo()

Method Detail

setMaxRetryAttempts

public void setMaxRetryAttempts(int retries)

Sets the maximum number of retry attempts that will be
performed for this Timer. If all retry attempts
are unsuccesful, the timeout failure action will
be executed.
A value of -1 indicates no maximum is set.

getMaxRetryAttempts

public int getMaxRetryAttempts()

setRetryDelay

public void setRetryDelay(long millis)

Sets the number of milliseconds that should elapse
before any retry attempts are made.

getRetryDelay

public long getRetryDelay()

setMaxTimeouts

public void setMaxTimeouts(int max)

Sets the maximum number of timeouts that can occur
for this timer. After the specified number of
timeouts have occurred successfully, the timer
will be cancelled.

getMaxTimeouts

public int getMaxTimeouts()

setTimeoutFailureAction

public void setTimeoutFailureAction(int action)

Sets the action the container will take when ejbTimeout
and all retry attempts fail. The REMOVE_TIMER_ACTION,
DISABLE_TIMER_ACTION and SKIP_TIMEOUT_ACTION
fields of this interface define the possible values.
For non-interval Timers, the SKIP_TIMEOUT_ACTION has
the same affect as REMOVE_TIMER_ACTION.
Note that the timeout failure action will never be used
if the ejbTimeout method has a transaction attribute of
REQUIRES_NEW and maxRetryAttempts is not greater than or
equal to 0. In this case, the Timer will be retried
indefinitely.

getTimeoutFailureAction

Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.