Package com.github.mike10004.xvfbmanager
Enum Poller.PollAction
- java.lang.Object
-
- java.lang.Enum<Poller.PollAction>
-
- com.github.mike10004.xvfbmanager.Poller.PollAction
-
- All Implemented Interfaces:
Serializable,Comparable<Poller.PollAction>
public static enum Poller.PollAction extends Enum<Poller.PollAction>
Enumeration of actions a poller's check function can return.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Poller.PollActionvalueOf(String name)Returns the enum constant of this type with the specified name.static Poller.PollAction[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RESOLVE
public static final Poller.PollAction RESOLVE
Stop polling because the state in question has been resolved.
-
ABORT
public static final Poller.PollAction ABORT
Stop polling without a resolution.
-
CONTINUE
public static final Poller.PollAction CONTINUE
Keep polling.
-
-
Method Detail
-
values
public static Poller.PollAction[] 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 (Poller.PollAction c : Poller.PollAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Poller.PollAction 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 nameNullPointerException- if the argument is null
-
-