public abstract class ClientEndpoint extends Object
Constructor and Description |
---|
ClientEndpoint(StateTranslator stateTranslator)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Enum |
getJobState()
Get the current state of the running job.
|
Enum |
waitUntilJobFinish()
Wait for this job to be finished and return the final state.
|
Enum |
waitUntilJobFinish(long timeout,
TimeUnit unit)
Wait for this job to be finished (complete or failed) and return the final state.
|
public ClientEndpoint(StateTranslator stateTranslator)
stateTranslator
- translator to translate between the state of job and corresponding.public final Enum getJobState()
public final Enum waitUntilJobFinish(long timeout, TimeUnit unit)
timeout
- of waiting.unit
- of the timeout.public final Enum waitUntilJobFinish()
Copyright © 2018. All rights reserved.