public class ControllerProgressGauge extends SimpleProgressGauge
Used for track async request handler method progress
ProgressGauge.Listener
Destroyable.Util
currentSteps, delegate, error, maxHint, NULL
PAYLOAD_MESSAGE
Constructor and Description |
---|
ControllerProgressGauge() |
Modifier and Type | Method and Description |
---|---|
void |
commitFinalState() |
void |
fail(String error)
Mark the progress has failed with an error message
|
void |
stepBy(int steps)
Advances the progress by specified steps
|
void |
stepTo(int steps)
Log progress
|
addListener, clearPayload, currentProgressPercent, currentSteps, error, getCurrentSteps, getId, getMaxHint, getPayload, getProgressPercent, incrMaxHint, incrMaxHintBy, isDone, isFailed, markAsDone, maxHint, releaseResources, setId, setPayload, step, triggerUpdateEvent, triggerUpdateEvent, updateMaxHint, wrap, wsJobProgressTag
addSubResource, destroy, isDestroyed, reload, scope
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, isDestroyed, scope
public void fail(String error)
ProgressGauge
Mark the progress has failed with an error message
fail
in interface ProgressGauge
fail
in class SimpleProgressGauge
error
- the error messagepublic void stepBy(int steps)
ProgressGauge
Advances the progress by specified steps
stepBy
in interface ProgressGauge
stepBy
in class SimpleProgressGauge
steps
- the step sizepublic void stepTo(int steps)
ProgressGauge
Log progress
stepTo
in interface ProgressGauge
stepTo
in class SimpleProgressGauge
steps
- the new progress valuepublic void commitFinalState()
Copyright © 2014–2021 ActFramework. All rights reserved.