public class ExecutionContextImpl extends java.lang.Object implements ExecutionContext
ExecutionContext.State
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
group |
protected java.util.UUID |
id |
protected java.lang.String |
key |
protected java.util.List<CancelableResource> |
resources |
protected java.util.Date |
startTime |
protected ExecutionContext.State |
state |
protected java.lang.Thread |
thread |
Constructor and Description |
---|
ExecutionContextImpl(java.lang.Thread thread,
java.lang.String key,
java.lang.String group,
java.util.Date startTime) |
Modifier and Type | Method and Description |
---|---|
void |
addResource(CancelableResource resource)
add cancelable resource to the current execution
|
void |
clearResources() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getGroup() |
java.lang.String |
getKey() |
java.util.List<CancelableResource> |
getResources() |
java.util.Date |
getStartTime() |
ExecutionContext.State |
getState() |
java.lang.Thread |
getThread() |
int |
hashCode() |
boolean |
isCanceled() |
void |
removeResource(CancelableResource resource)
remove cancelable resource to the current execution
|
void |
setState(ExecutionContext.State state) |
protected java.util.UUID id
protected java.lang.String key
protected java.lang.String group
protected java.util.Date startTime
protected java.lang.Thread thread
protected volatile ExecutionContext.State state
protected java.util.List<CancelableResource> resources
public ExecutionContextImpl(java.lang.Thread thread, java.lang.String key, java.lang.String group, java.util.Date startTime)
public java.lang.String getKey()
getKey
in interface ExecutionContext
public java.lang.String getGroup()
getGroup
in interface ExecutionContext
public java.util.Date getStartTime()
getStartTime
in interface ExecutionContext
public boolean isCanceled()
isCanceled
in interface ExecutionContext
public ExecutionContext.State getState()
getState
in interface ExecutionContext
public void setState(ExecutionContext.State state)
public void addResource(CancelableResource resource)
ExecutionContext
addResource
in interface ExecutionContext
public void removeResource(CancelableResource resource)
ExecutionContext
removeResource
in interface ExecutionContext
public java.lang.Thread getThread()
public java.util.List<CancelableResource> getResources()
public void clearResources()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object