public class JobEvent
extends org.appops.cache.event.ServiceEvent
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPLETED
Constant
COMPLETED="COMPLETED" |
static java.lang.String |
STARTED
Constant
STARTED="STARTED" |
| Constructor and Description |
|---|
JobEvent()
default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getJobEventStatus()
getJobEventStatus.
|
<T> T |
jobResult()
jobResult.
|
<T> T |
jobToken()
Fetch job token from data map .
|
void |
withJobResult(java.lang.Object result)
withJobResult.
|
void |
withToken(org.appops.core.job.token.JobToken jobToken)
withToken.
|
public static final java.lang.String STARTED
STARTED="STARTED"public static final java.lang.String COMPLETED
COMPLETED="COMPLETED"public void withJobResult(java.lang.Object result)
withJobResult.
result - a Object object.public <T> T jobResult()
jobResult.
T - a T object.public void withToken(org.appops.core.job.token.JobToken jobToken)
withToken.
jobToken - a JobToken object.public java.lang.String getJobEventStatus()
getJobEventStatus.
String object.public <T> T jobToken()
T - type of job tokenJobTokenCopyright © 2022. All rights reserved.