public class UpdateContextImpl extends Object implements RunningUpdate, PausingUpdate, PausedUpdate
| Constructor and Description |
|---|
UpdateContextImpl(RestConnection con,
JsonParser parser,
Long id) |
UpdateContextImpl(RestConnection con,
JsonParser parser,
String response) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel this update.
|
Long |
getId()
Returns the update Id.
|
RunningUpdate |
proceed()
Proceed with this update.
|
void |
resume()
Proceed with this update and wait until it's finished.
|
void |
waitFor()
Wait until the update is finished.
|
PausedUpdate |
waitForPause()
Wait until the update is paused.
|
public UpdateContextImpl(RestConnection con, JsonParser parser, String response)
public UpdateContextImpl(RestConnection con, JsonParser parser, Long id)
public Long getId()
UpdateContextgetId in interface UpdateContextpublic void cancel()
UpdateContextcancel in interface UpdateContextpublic void waitFor()
RunningUpdatewaitFor in interface RunningUpdatepublic PausedUpdate waitForPause()
PausingUpdatewaitForPause in interface PausingUpdatepublic void resume()
PausedUpdateresume in interface PausedUpdatepublic RunningUpdate proceed()
PausedUpdateproceed in interface PausedUpdateCopyright © 2012. All Rights Reserved.