public enum PhasingPolicy extends java.lang.Enum<PhasingPolicy>
RealtimeThread.start()
.
ADJUST IMMEDIATE | ADJUST FORWARD | ADJUST BACKWARD | STRICT PHASING | |
---|---|---|---|---|
RelativeTime | The time of start method invocation plus start time. |
The time of start method invocation plus start time. |
The time of start method invocation plus start time. |
The time of start method invocation plus start time. |
AbsoluteTime, earlier than call to start |
Release immediately and set next release time to be at the
time the start method was invoked plus period . |
All releases before the time start is called are
ignored. The first release is at the start time plus the smallest
multiple of period whose time is after the time
start was called. |
The first release occurs immediately and the next release is at the
start time plus the smallest multiple of period whose
time is after the time start was called. |
The start method throws an exception. |
AbsoluteTime, later than call to start |
First release is at time passed to start . |
First release is at time passed to start . |
First release is at time passed to start . |
First release is at time passed to start . |
Without Time | First release is at time of start method invocation | First release is at time of start method invocation | First release is at time of start method invocation | First release is at time of start method invocation |
Enum Constant and Description |
---|
ADJUST_BACKWARD
Indicates that a periodic thread started after the absolute
time given for its start time should be released immediately with
the next release at the next multiple of its period from its start
time.
|
ADJUST_FORWARD
Indicates that a periodic thread started after the absolute
time given for its start time should be released at the next multiple
of its period from its start time.
|
ADJUST_IMMEDIATE
Indicates that a periodic thread started after the absolute
time given for its start time should be released immediately with
the next release one period later.
|
STRICT_PHASING
Indicates that a periodic thread started after the absolute
time given for its start time should throw the
LateStartException exception instead of being
released. |
Modifier and Type | Method and Description |
---|---|
static PhasingPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PhasingPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PhasingPolicy ADJUST_IMMEDIATE
public static final PhasingPolicy ADJUST_FORWARD
public static final PhasingPolicy ADJUST_BACKWARD
public static final PhasingPolicy STRICT_PHASING
LateStartException
exception instead of being
released.public static PhasingPolicy[] values()
for (PhasingPolicy c : PhasingPolicy.values()) System.out.println(c);
public static PhasingPolicy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null