com.sun.faban.driver
Annotation Type Background


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface Background

Specifies simulated operations performed in the background without user initiation. For example, some clients like POP3 periodically download new mail without the user initiating the download. There are certain restrictions imposed on background operations:

However, if an operation is used solely for background simulation but does not specify the timings for the operation, it will use the cycles specified for the operation or the whole driver which can be of any valid cycle type.

Author:
Akara Sucharitakul

Required Element Summary
 String[] operations
          The list of operation names to be run in the background.
 
Optional Element Summary
 InitialDelay initialDelay
          Defines the initial delay maximum of the background.
 FixedTime[] timings
          The timing cycles for the specified operations.
 

Element Detail

operations

public abstract String[] operations
The list of operation names to be run in the background. The same operation may be run both in the foreground and in the background.

timings

public abstract FixedTime[] timings
The timing cycles for the specified operations. It can only be FixedTime. If only one FixedTime is specified, it will propagate to all the background operations. Otherwise the number of FixedTime elements must match the number of operations. Leaving timings unspecified allows the background operations to use the cycles otherwise applicable to the operation.

Default:
{}

initialDelay

public abstract InitialDelay initialDelay
Defines the initial delay maximum of the background.

Default:
@com.sun.faban.driver.InitialDelay(max=0)