public final class ConcurrentPhase extends Phase
A concurrent phase runs concurrently with mutator activity.
Modifier and Type | Field and Description |
---|---|
private int |
atomicScheduledPhase
The atomic scheduled phase to use when concurrent collection is not allowed
|
id, name, SCHEDULE_COLLECTOR, SCHEDULE_COMPLEX, SCHEDULE_CONCURRENT, SCHEDULE_GLOBAL, SCHEDULE_MUTATOR, SCHEDULE_PLACEHOLDER, timer
Modifier | Constructor and Description |
---|---|
protected |
ConcurrentPhase(String name,
int atomicScheduledPhase)
Construct a complex phase from an array of phase IDs.
|
protected |
ConcurrentPhase(String name,
Timer timer,
int atomicScheduledPhase)
Construct a complex phase from an array of phase IDs, but using
the specified timer rather than creating one.
|
Modifier and Type | Method and Description |
---|---|
protected int |
getAtomicScheduledPhase()
Return the atomic schedule phase, to be used in place of this phase when
concurrent collection is not available.
|
protected void |
logPhase()
Display a description of this phase, for debugging purposes.
|
beginNewPhaseStack, clearConcurrentPhase, concurrentPhaseActive, continuePhaseStack, createComplex, createComplex, createConcurrent, createConcurrent, createSimple, createSimple, getConcurrentPhaseId, getId, getName, getPhase, getPhaseId, getSchedule, getScheduleName, isPhaseStackEmpty, notifyConcurrentPhaseComplete, notifyConcurrentPhaseIncomplete, pushScheduledPhase, resetPhaseStack, scheduleCollector, scheduleComplex, scheduleConcurrent, scheduleGlobal, scheduleMutator, schedulePlaceholder
private final int atomicScheduledPhase
protected ConcurrentPhase(String name, int atomicScheduledPhase)
name
- The name of the phase.atomicScheduledPhase
- The atomic scheduled phaseprotected ConcurrentPhase(String name, Timer timer, int atomicScheduledPhase)
name
- The name of the phase.timer
- The timer for this phase to contribute to.atomicScheduledPhase
- The atomic scheduled phaseprotected void logPhase()
Phase
protected int getAtomicScheduledPhase()