com.opera.core.systems.scope.internal
Enum OperaIntervals

java.lang.Object
  extended by java.lang.Enum<OperaIntervals>
      extended by com.opera.core.systems.scope.internal.OperaIntervals
All Implemented Interfaces:
Serializable, Comparable<OperaIntervals>

public enum OperaIntervals
extends Enum<OperaIntervals>

Enumerator for delay values in milliseconds.


Enum Constant Summary
BACKWARDS_COMPATIBLE
           
DEFAULT_RESPONSE_TIMEOUT
           
EXEC_SLEEP
           
HANDSHAKE_TIMEOUT
           
KILL_GRACE_TIMEOUT
           
LAUNCHER_TIMEOUT
          After starting the launcher we need to wait for the launcher to connect to our listener.
MENU_EVENT_TIMEOUT
           
MULTIPLE_CLICK_SLEEP
          When clicking several times in a row (e.g.
OPERA_IDLE_TIMEOUT
           
PAGE_LOAD_TIMEOUT
           
POLL_INTERVAL
           
PROCESS_START_SLEEP
          If programs such as the launcher exits immediately with an improper exit value (> 0) we can assume something went wrong during initialization.
QUIT_POLL_INTERVAL
           
QUIT_RESPONSE_TIMEOUT
           
RESPONSE_TIMEOUT
           
SCRIPT_RETRY
           
SCRIPT_RETRY_INTERVAL
           
SCRIPT_TIMEOUT
           
SERVER_PORT
           
WAIT_FOR_ELEMENT
           
WINDOW_EVENT_TIMEOUT
           
 
Method Summary
 long getValue()
           
 void setValue(long value)
           
static OperaIntervals valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OperaIntervals[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

RESPONSE_TIMEOUT

public static final OperaIntervals RESPONSE_TIMEOUT

PAGE_LOAD_TIMEOUT

public static final OperaIntervals PAGE_LOAD_TIMEOUT

WINDOW_EVENT_TIMEOUT

public static final OperaIntervals WINDOW_EVENT_TIMEOUT

OPERA_IDLE_TIMEOUT

public static final OperaIntervals OPERA_IDLE_TIMEOUT

POLL_INTERVAL

public static final OperaIntervals POLL_INTERVAL

SCRIPT_RETRY

public static final OperaIntervals SCRIPT_RETRY

SCRIPT_RETRY_INTERVAL

public static final OperaIntervals SCRIPT_RETRY_INTERVAL

EXEC_SLEEP

public static final OperaIntervals EXEC_SLEEP

HANDSHAKE_TIMEOUT

public static final OperaIntervals HANDSHAKE_TIMEOUT

SERVER_PORT

public static final OperaIntervals SERVER_PORT

KILL_GRACE_TIMEOUT

public static final OperaIntervals KILL_GRACE_TIMEOUT

BACKWARDS_COMPATIBLE

public static final OperaIntervals BACKWARDS_COMPATIBLE

DEFAULT_RESPONSE_TIMEOUT

public static final OperaIntervals DEFAULT_RESPONSE_TIMEOUT

WAIT_FOR_ELEMENT

public static final OperaIntervals WAIT_FOR_ELEMENT

QUIT_POLL_INTERVAL

public static final OperaIntervals QUIT_POLL_INTERVAL

QUIT_RESPONSE_TIMEOUT

public static final OperaIntervals QUIT_RESPONSE_TIMEOUT

SCRIPT_TIMEOUT

public static final OperaIntervals SCRIPT_TIMEOUT

LAUNCHER_TIMEOUT

public static final OperaIntervals LAUNCHER_TIMEOUT
After starting the launcher we need to wait for the launcher to connect to our listener. If the launcher does not connect within this timeout, we assume something has gone wrong.


PROCESS_START_SLEEP

public static final OperaIntervals PROCESS_START_SLEEP
If programs such as the launcher exits immediately with an improper exit value (> 0) we can assume something went wrong during initialization. We need to wait for a short period before checking the exit value as it may take some time to start the program.


MENU_EVENT_TIMEOUT

public static final OperaIntervals MENU_EVENT_TIMEOUT

MULTIPLE_CLICK_SLEEP

public static final OperaIntervals MULTIPLE_CLICK_SLEEP
When clicking several times in a row (e.g. for a double, triple or quadruple click) 640 ms is the hardcoded interval Opera must wait before loosing the previous click state, not joining clicks together. This should be removed when support is added to the exec service for setValue() so that we can tell Opera to override this interval.

Method Detail

values

public static OperaIntervals[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (OperaIntervals c : OperaIntervals.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OperaIntervals valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

setValue

public void setValue(long value)

getValue

public long getValue()


Copyright © 2012. All Rights Reserved.