net.sf.oxclient.aspects.retry
Annotation Type RetryIt


@Documented
@Retention(value=RUNTIME)
@Target(value=METHOD)
@Inherited
public @interface RetryIt

Author:
Björn Voß

Required Element Summary
 ParameterSaveType saverType
           
 
Optional Element Summary
 Class<? extends IParameterSaver> customSaver
           
 int delay
          Milliseconds to wait before the next execution.
 int numberOfRetries
          How often should the execution be retried.
 Class<? extends Throwable>[] retryFor
           
 boolean useGlobalSettings
          Should either the values for numberOfRetries() and delay() of this annotation be used, or the global settings in RetryHandler.
 

Element Detail

saverType

public abstract ParameterSaveType saverType

numberOfRetries

public abstract int numberOfRetries
How often should the execution be retried.

Defaults to 2

Default:
2

delay

public abstract int delay
Milliseconds to wait before the next execution.

Defaults to 100

Default:
100

useGlobalSettings

public abstract boolean useGlobalSettings
Should either the values for numberOfRetries() and delay() of this annotation be used, or the global settings in RetryHandler.

Defaults to true for global Settings.

Note:
This has nothing to do with the default values for numberOfRetries() and delay()

See Also:
RetryHandler
Default:
true

retryFor

public abstract Class<? extends Throwable>[] retryFor
Default:
java.lang.RuntimeException.class

customSaver

public abstract Class<? extends IParameterSaver> customSaver
Default:
net.sf.oxclient.aspects.retry.IParameterSaver.class


Copyright © 2007. All Rights Reserved.